Issue #16218 has been updated by James Patterson.
The pseduo config:
MANIFEST:
class { 'puppet': stage => 'gofirst', }
class { 'yumrepos': stage => 'gofirst', }
MODULES:
class puppet() {
package { 'puppet': ensure => 'latest' }
service { 'puppet':
ensure => running,
enable => true,
require => Package['puppet'],
hasrestart => true,
hasstatus => true,
}
file {
'/etc/puppet/puppet.conf':
content => template('puppet/puppet.conf.erb'),
ensure => present,
group => 'root',
owner => 'root',
mode => '0644',
notify => Service['puppet'],
require => Package['puppet'],
}
}
class yumrepos() {
yumrepos::repo {
"blah-blah-1": baseurl => "http://repo.example.com/blah-blah-1/";
"blah-blah-2": baseurl => "http://repo.example.com/blah-blah-2/";
"blah-blah-3": baseurl => "http://repo.example.com/blah-blah-3/";
"blah-blah-4": baseurl => "http://repo.example.com/blah-blah-4/";
"blah-blah-5": baseurl => "http://repo.example.com/blah-blah-5/";
}
define yumrepos::repo($baseurl, $enabled=1, $gpgcheck=1) {
yumrepo { $name:
descr => "${name} (\$basearch)",
baseurl => $baseurl,
enabled => $enabled,
gpgcheck => $gpgcheck,
}
}
}
----------------------------------------
Bug #16218: puppet abandons some changes on a puppetd restart
https://projects.puppetlabs.com/issues/16218#change-70353
Author: James Patterson
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.7.17
Keywords:
Branch:
I have a special stage that configures puppet and writes some yum repos.
The puppet config part has a notify that restarts puppet.
The yum part just writes some .repo files to disk using the repo class.
Although the log says the repo changes were made, they weren't - I can't see
the .repo files on disk.
I strongly suspect that the puppetd restart is causing these changes to not be
commited properly.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.