diff options
author | Todd Zullinger <tmz@pobox.com> | 2012-01-28 11:12:53 -0500 |
---|---|---|
committer | Todd Zullinger <tmz@pobox.com> | 2012-01-28 11:27:24 -0500 |
commit | e7a6988fdd8e1fea1e2994f04d84909ec92576dd (patch) | |
tree | 1d9f067a92e89877b6907372e47492dbc5262faf /puppethost.py | |
parent | 04382cd4ac75238432fa38b534463e27adb946f3 (diff) | |
download | puppet-host-package-e7a6988fdd8e1fea1e2994f04d84909ec92576dd.tar.gz puppet-host-package-e7a6988fdd8e1fea1e2994f04d84909ec92576dd.tar.xz puppet-host-package-e7a6988fdd8e1fea1e2994f04d84909ec92576dd.zip |
Set ownership on ssldir to puppet
This is adjustable via the config with the puppetuser setting. When
puppet runs, it resets the ownership of these files, which causes rpm -V
to show them as modified.
Diffstat (limited to 'puppethost.py')
-rw-r--r-- | puppethost.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/puppethost.py b/puppethost.py index 8d00af0..2e6176a 100644 --- a/puppethost.py +++ b/puppethost.py @@ -40,6 +40,7 @@ defaults = { 'ssldir': '/etc/puppet/ssl', 'template': '%(ssldir)s/template.spec', 'pkgprefix': 'host-package-', + 'puppetuser': 'puppet', 'verbose': 1, } @@ -197,6 +198,7 @@ class PuppetHost(object): text = text.replace('__RELEASE__', self.opts['release']) text = text.replace('__SSLDIR__', self.opts['destssldir']) text = text.replace('__PKGPREFIX__', self.opts['pkgprefix']) + text = text.replace('__PUPPETUSER__', self.opts['puppetuser']) specfp = open(spec, 'w') specfp.write(text) |