Project

General

Profile

Actions

Bug #1251

closed

Missing directory in a fresh install

Added by Jeff Palmer over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When using the puppet module on a fresh install, we recieve an error about a missing directory.

[root@lab puppet-foreman]# echo include foreman | puppet apply --modulepath .
<snip>
err: /File[/var/lib/puppet/yaml/foreman]/ensure: change from absent to directory failed: Cannot create /var/lib/puppet/yaml/foreman; parent directory /var/lib/puppet/yaml does not exist
<snip>

Actions #1

Updated by Jeff Palmer over 12 years ago

I have submitted a pull request with the simple fix for this issue.

https://github.com/ohadlevy/puppet-foreman/pull/5

Actions #2

Updated by Ohad Levy over 12 years ago

  • Status changed from New to Feedback

this directory is created by the master, i was unsure if this makes sense to create in the foreman module.

if you dont use that server as a master, then simply turn off the enc in the params manifest.

Actions #3

Updated by Jeff Palmer over 12 years ago

If the goal is to have a module that handles the complete install of theforeman, then I would suggest having one of two things happen:

Either, make sure the module creates the appropriate directories
OR, have the module make sure that the puppetmaster is installed and started.

Since foreman may be installed standalone, it may make sense to account for this in the foreman/manifests/params.pp with some setting to make foreman a standalone or puppetmaster install. I'm thinking of a true/false value like the others.
If false, just create the directories.
If true, install puppetmaster (maybe install it using passenger depending on the setting for that) and start it so it auto-creates the appropriate directories?

Actions #4

Updated by Ohad Levy over 12 years ago

  • Status changed from Feedback to Closed

this was resolved by adding that directory into foreman puppet module as part of the Debian integration

Actions

Also available in: Atom PDF