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

settings::vardir does not exist on agents #12

Open
KlavsKlavsen opened this issue May 9, 2014 · 6 comments
Open

settings::vardir does not exist on agents #12

KlavsKlavsen opened this issue May 9, 2014 · 6 comments

Comments

@KlavsKlavsen
Copy link

The module currently uses $settings::vardir/selinux as the place to put modules.
The problem is, that I use /var/lib/puppetmaster as vardir for my master - so I have the master and agent (on same machine) seperated - but that means that you cannot assume that the servers vardir exists on the agents.

I'd set it to /var/tmp/selinux - and ensure ownership on that instead. That folder should always exist and is not emptied at boot.

@pecastro
Copy link

pecastro commented Oct 7, 2014

+1 Bumped into the same thing just now.
You can override it with selinux::params::modules_dir but then it becomes your problem and a not very portable one. :(

@wadells
Copy link

wadells commented Jun 9, 2015

Just hit this while running a puppet master under my user for development purposes. While running this way vardir = ~/.puppet/var/ on my workstation, which doesn't exist at all on the agent machines (because my user is not present on those).

@wadells
Copy link

wadells commented Jun 9, 2015

Suggestion: instead of $::settings::vardir lets use the $::puppet_vardir fact:

$ facter --puppet | grep var
concat_basedir => /var/lib/puppet/concat
puppet_vardir => /var/lib/puppet

https://github.com/puppetlabs/puppetlabs-stdlib/blob/0191a3fb772d3caff59ad684e02e702ae8542b1e/lib/facter/puppet_vardir.rb

@t4nec0
Copy link

t4nec0 commented Aug 26, 2015

+1, followed Javins comment

@necrolyte2
Copy link

+1, also changed ${::settings::vardir} to ${::puppet_vardir} and it fixed issue for me

@mike-es
Copy link

mike-es commented Dec 3, 2015

This is a blocker for me right now. +1 for Javins change/pull request

maage pushed a commit to cybercom-finland/puppet-selinux that referenced this issue Sep 1, 2016
support for restorecond and support for restorecond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants