Luca Gioppo
2013-Jan-17 10:26 UTC
[Puppet Users] cleaning up nodes with exported resources
Hi, I''m developing my modules for managing the env with puppet and I have this problem. I use exported resources. Much like the following example: node a { @@file { "/tmp/foo": content => "fjskfjs\n", tag => "foofile", } } node b { File <<| tag == ''foofile'' |>> } (I use the database resource, but for sake of ease even the file will do) It happens that the exported resource has wrong value inside (in the case of the DB maybe the hosname of the user) I have difficulty in fixing the problem since it seems (but may be me that does not understand the things completely) that it keeps the old values or in the following runs it generates a new exported resource that lives with the other, it does not substitute it. This make a mess in the mysql since I find many user accounts on the DB. Any idea on how to correctly use the exported resources in a developing environment and on how to correctly clean up stuff? I''m on puppet 3 and using stored config. Thanks Luca -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/b7pxAleNUsMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Luca Gioppo
2013-Jan-17 11:03 UTC
[Puppet Users] Re: cleaning up nodes with exported resources
Ok my fault for unclean situation. After dropping the user in the DB and "COMMITTING" the modified node to the environment the exported resource got modified and rthere is only one and not many. Obviously users created in the DB stay there if created wrongly. Luca Il giorno giovedì 17 gennaio 2013 11:26:57 UTC+1, Luca Gioppo ha scritto:> > Hi, > I''m developing my modules for managing the env with puppet and I have this > problem. > > I use exported resources. > Much like the following example: > > node a { > @@file { "/tmp/foo": content => "fjskfjs\n", tag => "foofile", } > } > node b { > File <<| tag == ''foofile'' |>> > } > > (I use the database resource, but for sake of ease even the file will do) > > It happens that the exported resource has wrong value inside (in the case of the DB maybe the hosname of the user) I have difficulty in fixing the problem since it seems (but may be me that does not understand the things completely) that it keeps the old values or in the following runs it generates a new exported resource that lives with the other, it does not substitute it. > > This make a mess in the mysql since I find many user accounts on the DB. > > Any idea on how to correctly use the exported resources in a developing > environment and on how to correctly clean up stuff? > > I''m on puppet 3 and using stored config. > Thanks > Luca >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5NH-uuh67TIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.