Skip to content
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

Install package before creating config files #378

Closed
bobapple opened this issue Sep 18, 2017 · 0 comments
Closed

Install package before creating config files #378

bobapple opened this issue Sep 18, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@bobapple
Copy link
Contributor

The module tries to create constants.conf, icinga2.conf and features-enabled/ before the package is installed.

Expected Behavior

The icinga2 package should be installed before creating config files

Notice: Compiled catalog for i2ubuntu16puppet4.int.netways.de in environment production in 8.03 seconds
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/icinga2/constants.conf20170918-13954-1w3d7yy.lock at /tmp/vagrant-puppet/environments/production/modules/icinga2/manifests/config.pp:32
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/icinga2/constants.conf20170918-13954-1w3d7yy.lock at /tmp/vagrant-puppet/environments/production/modules/icinga2/manifests/config.pp:32

Possible Solution

Manage conf_dir
Revert 58095b9#diff-a276806bea2dfcf1f57c33aee19c7309L36

@bobapple bobapple added the bug label Sep 18, 2017
@bobapple bobapple added this to the v1.3.1 milestone Sep 18, 2017
@lbetz lbetz self-assigned this Sep 18, 2017
@lbetz lbetz closed this as completed in 0f565bd Sep 19, 2017
lbetz added a commit that referenced this issue Sep 19, 2017
…ng-config-files-378

fix #378 install package before creating config files
n00by pushed a commit to n00by/puppet-icinga2 that referenced this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants