GithubHelp home page GithubHelp logo

Comments (8)

arm4b avatar arm4b commented on June 3, 2024

Looks like templates/default/st2.conf.erb is outdated and unsync from the original st2.conf file.

Here is the default config /etc/st2/st2.conf which is shipped with packaging: https://github.com/StackStorm/st2/blob/master/conf/st2.prod.conf

from chef-stackstorm.

arm4b avatar arm4b commented on June 3, 2024

Apart of that, I'm 👎 with the templating approach on Chef side (https://github.com/StackStorm/chef-stackstorm/blob/master/templates/default/st2.conf.erb).

Instead of templating, chef-stackstorm should just use original st2.conf installed by default via packaging. If user needs to overwrite some specific conf settings - chef cookbook should edit the default file /etc/st2/st2/conf.

Otherwise it will always go out of sync, for example when StackStorm core team changes some recommended defaults in st2.conf.

from chef-stackstorm.

jvrplmlmn avatar jvrplmlmn commented on June 3, 2024

chef cookbook should edit the default file /etc/st2/st2/conf.

Sorry if I'm not following @armab, but you mean /etc/st2/st2.conf ?

from chef-stackstorm.

arm4b avatar arm4b commented on June 3, 2024

@jvrplmlmn You're right, /etc/st2/st2.conf.
Sorry for the typo.

from chef-stackstorm.

jvrplmlmn avatar jvrplmlmn commented on June 3, 2024

But in that case, if a user of the cookbook wants to overwrite a value, they need to use their own file / template and override the default one. Or which alternative are you proposing? Using something like crudini?

from chef-stackstorm.

jvrplmlmn avatar jvrplmlmn commented on June 3, 2024

I checked that every st2* service definition has a EnvironmentFile like:

EnvironmentFile=-/etc/sysconfig/st2notifier

Is it possible to override those default values in this files?

from chef-stackstorm.

arm4b avatar arm4b commented on June 3, 2024

crudini

Yeah, something like that. For Puppet there is puppetlabs/inifile, probably something similar exists for Chef. IDK.

from chef-stackstorm.

arm4b avatar arm4b commented on June 3, 2024

Actually, nevermind.

I just checked that https://github.com/StackStorm/chef-stackstorm/blob/master/templates/default/st2.conf.erb is 1 year old (!), so it's from very very old StackStorm installation (before we even introduced new packages).

So just sync-ing default values in https://github.com/StackStorm/chef-stackstorm/blob/master/templates/default/st2.conf.erb and https://github.com/StackStorm/st2/blob/master/conf/st2.package.conf should be good and easy enough.

Thinking about the balance and not messing with Chef practices

from chef-stackstorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.