-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repeated agent runs should generate identical config files (concat ordering) #331
Comments
This is a problem on Ruby 1.8, which comes with CentOS 6. Please use a more modern Puppet, or at least Ruby, this is not fixable on our side! See: |
Sorry for the very late reply. Which puppet components need to run ruby >= 1.9 for the ordering to work? The puppetmaster process (e.g. via rvm'd passenger) or the agent, or both? |
If you update to puppet >=4, you get a bundled ruby version. This might be less painful. |
Thanks. We do understand that and we desperately want to move to puppet 5 but we are looking for a way to get this functionality before then. For us -- if it solved the problem -- using RVM with puppet 3 is much easier than migrating to puppet 4. |
The requirement of Ruby >=1.9 is for the master servers only. To parse the icinga2 configuration we use a function and function are just executed on a master. But note if you use puppet apply on an 'agent' it's simulate a master and then you have to install ruby >=1.9 on this host too. |
Each time my agents run, the icinga2 module will reorder lines in various config files. This triggers a refresh of the agent (not a big deal) but also indicates the puppet run made changes (incorrect).
Examples from an agent run
Expected Behavior
icinga2 config files only change when necessary.
Current Behavior
icinga2 config files are changed (by reordering of directives / stanzas), causing a service restart and causing the puppet agent run to indicate a change was made.
Possible Solution
I think these files are generated using the concat module. If so, specify ordering of the contents so files are only changed when necessary.
Steps to Reproduce (for bugs)
Context
The restart of the icinga2 agent is not a huge deal, but flagging the puppet run as a change means every run is a change. This hurts our ability to find 'real' changes that should be investigated further.
Your Environment
puppet module list
):/etc/puppet/modules
├── Aethylred-postfix (v0.1.1)
├── AlexCline-fstab (v0.3.0)
├── _deprecated (???)
├── abstractit-monitoring (v1.2.2)
├── abstractit-nrpe (v1.1.3)
├── argo (???)
├── bjoern-ossec (v0.0.1)
├── bootstrap (???)
├── certdeploy (???)
├── ddf (???)
├── default_firewall (???)
├── dgutierrez1287-centrify (v0.1.0)
├── dib40 (???)
├── duritong-sysctl (v0.0.11)
├── epel (???)
├── erwbgy-limits (v0.3.1)
├── example42-puppi (v2.2.1)
├── example42-yum (v2.1.28)
├── hardening (???)
├── herculesteam-augeasproviders_core (v2.1.2)
├── herculesteam-augeasproviders_pam (v2.1.0)
├── hieradata (???)
├── icinga-icinga2 (v1.1.0)
├── jc2cui (???)
├── jdowning-awscli (v1.3.0)
├── joshcooper-powershell (v0.0.6)
├── kemra102-auditd (v2.2.0)
├── mapwidget-loader (???)
├── mcafee_av (???)
├── nanliu-staging (v1.0.4)
├── netrc (???)
├── nzin-ossec (???)
├── openam (???)
├── opendj (???)
├── openjdk7 (???)
├── opentable-download_file (v0.0.2)
├── opentable-nsclient (v0.0.2)
├── ozone (???)
├── ozone-mapwidget (???)
├── petems-swap_file (v3.1.4)
├── profile (???)
├── puppet-nexus-master (???)
├── puppet-selinux (???)
├── puppetlabs-apache (v1.11.0)
├── puppetlabs-apt (v4.1.0) invalid
├── puppetlabs-concat (v2.1.0) invalid
├── puppetlabs-firewall (v1.8.2)
├── puppetlabs-firewall (v1.8.1)
├── puppetlabs-inifile (v1.6.0)
├── puppetlabs-java_ks (v1.4.1)
├── puppetlabs-mongodb (v0.11.0)
├── puppetlabs-mysql (v3.4.0)
├── puppetlabs-ntp (v4.0.0)
├── puppetlabs-postgresql (v4.9.0)
├── puppetlabs-puppetdb (v5.2.0)
├── puppetlabs-rsync (v0.4.0)
├── puppetlabs-stdlib (v4.17.0) invalid
├── puppetlabs-vcsrepo (v1.3.0)
├── puppetlabs-xinetd (v1.5.0)
├── qpid (???)
├── role (???)
├── saz-dnsmasq (v1.0.1)
├── saz-memcached (v2.8.1)
├── saz-resolv_conf (v1.0.4)
├── saz-ssh (v2.8.1)
├── saz-sudo (v3.0.1)
├── saz-timezone (v2.0.0)
├── schrepfler-jdk_oracle (v1.0.8)
├── selinux (???)
├── seteam-splunk (v3.0.1)
├── sharumpe-tcpwrappers (v1.0.2)
├── stackforge-ceph (v1.0.0)
├── stephenrjohnson-puppet (v1.4.0)
├── tomcat (???)
├── tomcat7_rhel (???)
├── torrancew-cron (v0.2.1)
├── widget (???)
└── yum_groupinstall (???)
puppet -V
): 3.8.7The text was updated successfully, but these errors were encountered: