windowsrefund
2009-Oct-19 21:33 UTC
[Puppet Users] sysidcfg file on OpenSolaris 2009.06 client
Puppet 0.24.8 on both the client and server. My zone is being created but the sysidcfg file is not being created under etc/ info: Caching catalog at /var//opt/csw/puppet/state/localconfig.yaml notice: Starting catalog run notice: //Node[labrat1]/Zone_instance[labrat1a]/zone_zfs_root/Zfs [rpool/export/zones]/ensure: created notice: //Node[labrat1]/Zone_instance[labrat1a]/zone_zfs_root/File[/ export/zones]/mode: mode changed ''755'' to ''700'' notice: //Node[labrat1]/Zone_instance[labrat1a]/Zfs[rpool/export/zones/ labrat1a]/ensure: created notice: //Node[labrat1]/Zone_instance[labrat1a]/File[/export/zones/ labrat1a]/mode: mode changed ''755'' to ''700'' err: //Node[labrat1]/Zone_instance[labrat1a]/Zone[labrat1a]/ensure: change from absent to running failed: Could not create sysidcfg: No such file or directory - /export/zones/labrat1a/root/etc/sysidcfg notice: Finished catalog run in 689.95 seconds Here is the contents of modules/zone_instance/manifests/init.pp: class zone_zfs_root { zfs { "rpool/export/zones": mountpoint => "/export/zones", ensure => present, } file { "/export/zones": ensure => directory, mode => 700, require => Zfs["rpool/export/zones"], } } define zone_instance ( $zone_nameserver=''10.250.250.30'', $zone_if, $zone_ip, $zone_route=''10.250.250.1'', $zone_mask=''255.255.255.0'') { $zname = "$name.$domain" include zone_zfs_root zfs { "rpool/export/zones/$name": mountpoint => "/export/zones/$name", ensure => present, require => File["/export/zones"], } file { "/export/zones/$name": ensure => directory, mode => 700, require => Zfs["rpool/export/zones/$name"], } zone { $name: ensure => running, create_args => "-b", autoboot => true, ip => "$zone_if:$zone_ip", path => "/export/zones/%s", realhostname => $zname, sysidcfg => template("zone_instance/sysidcfg"), require => File["/export/zones/$name"], } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---
Martin Englund
2009-Oct-19 23:33 UTC
[Puppet Users] Re: sysidcfg file on OpenSolaris 2009.06 client
Hi! On Oct 19, 11:33 pm, windowsrefund <windowsref...@gmail.com> wrote:> Puppet 0.24.8 on both the client and server. My zone is being created > but the sysidcfg file is not being created under etc/ > > info: Caching catalog at /var//opt/csw/puppet/state/localconfig.yaml > notice: Starting catalog run > notice: //Node[labrat1]/Zone_instance[labrat1a]/zone_zfs_root/Zfs > [rpool/export/zones]/ensure: created > notice: //Node[labrat1]/Zone_instance[labrat1a]/zone_zfs_root/File[/ > export/zones]/mode: mode changed ''755'' to ''700'' > notice: //Node[labrat1]/Zone_instance[labrat1a]/Zfs[rpool/export/zones/ > labrat1a]/ensure: created > notice: //Node[labrat1]/Zone_instance[labrat1a]/File[/export/zones/ > labrat1a]/mode: mode changed ''755'' to ''700'' > err: //Node[labrat1]/Zone_instance[labrat1a]/Zone[labrat1a]/ensure: > change from absent to running failed: Could not create sysidcfg: No > such file or directory - /export/zones/labrat1a/root/etc/sysidcfg > notice: Finished catalog run in 689.95 seconds >This is because zones in OpenSolaris work differently than in Solaris 10. Now a zone gets its own Boot Environment (be), which is a zfs root file system that doesn''t get mounted until the zone is in the ready state. I''ll file a bug for this... cheers, /Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---
windowsrefund
2009-Oct-20 01:34 UTC
[Puppet Users] Re: sysidcfg file on OpenSolaris 2009.06 client
Martin, Thank you for the response. Are you aware of any short term work around? Best, Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---
Martin Englund
2009-Oct-20 10:47 UTC
[Puppet Users] Re: sysidcfg file on OpenSolaris 2009.06 client
Hi Adam! On Oct 20, 3:34 am, windowsrefund <windowsref...@gmail.com> wrote:> Thank you for the response. Are you aware of any short term work > around? >I''ve created a bug for it: <http://projects.reductivelabs.com/issues/2737> And you can try my first shot at at fixing it: <http://github.com/pmenglund/puppet/tree/ticket/0.25.x/2737> cheers, /Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---
windowsrefund
2009-Oct-20 23:12 UTC
[Puppet Users] Re: sysidcfg file on OpenSolaris 2009.06 client
Thank you very much --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---