Hi all, Are global defaults defined in site.pp writable in type definitions? Maybe I could explain my question better with an example: I have this options set as default for yumrepo in site.pp: $ grep -i -A6 yumrepo site.pp Yumrepo { enabled => 1, enablegroups => 1, gpgcheck => 0, gpgkey => absent, metadata_expire => 43200, } and this repo: yumrepo { "pic": baseurl => "http://server/mrepo/local-PIC-noarch/RPMS.pic/", descr => "pic", name => "pic", enabled => absent, } *i also tried with "absent" and '' absent'' . but after running puppet in one node: # /usr/bin/ruby /usr/sbin/puppetd --server=gridinstall.pic.es --test info: Caching catalog at /var/lib/puppet/localconfig.yaml notice: Starting catalog run info: Sent transaction report in 0.53 seconds notice: Finished catalog run in 124.59 seconds The repo does not disappear: # cat pic.repo [pic] name=pic baseurl=http://server/mrepo/local-PIC-noarch/RPMS.pic/ gpgcheck=0 enablegroups=1 metadata_expire=43200 so, default option in site.pp is mandataory for the type? TIA, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> yumrepo { "pic": > baseurl => "http://server/mrepo/local-PIC-noarch/RPMS.pic/", > descr => "pic", > name => "pic", > enabled => absent, > } > > *i also tried with "absent" and '' absent'' .I think it is ensure => absent enable is to disable the repo, but to keep the information on disk. However the type seems to assume enable => true for every option different than false or 0.> so, default option in site.pp is mandataory for the type?I don''t think so. However if you look at the yum-module I wrote (http://git.puppet.immerda.ch/?p=module-yum.git) I manage the whole directory of yum.repos.d to get rid off unmanaged repos. cheers pete. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Fri, 08 May 2009 08:41:22 +0200 Peter Meier wrote:> > HiHi Pete,> > yumrepo { "pic": > > baseurl => > > "http://server/mrepo/local-PIC-noarch/RPMS.pic/", descr => > > "pic", name => "pic", > > enabled => absent, > > } > > > > *i also tried with "absent" and '' absent'' . > > I think it is ensure => absentIn previous mail James told me it is enabled, and from type refernce: enabled Whether this repository is enabled or disabled. Possible values are ''0'', and ''1''. Set this to ''absent'' to remove it from the file completely Valid values are absent. Values can also match /(0|1)/> enable is to disable the repo, but to keep the information on disk. > However the type seems to assume enable => true for every option > different than false or 0. > > > so, default option in site.pp is mandataory for the type? > > I don''t think so. However if you look at the yum-module I wrote > (http://git.puppet.immerda.ch/?p=module-yum.git) I manage the whole > directory of yum.repos.d to get rid off unmanaged repos.it''s an other way for having repos under control. thanks!> cheers pete.Cheers, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Fri, May 8, 2009 at 1:41 AM, Peter Meier <peter.meier@immerda.ch> wrote:> > Hi > >> yumrepo { "pic": >> baseurl => "http://server/mrepo/local-PIC-noarch/RPMS.pic/", >> descr => "pic", >> name => "pic", >> enabled => absent, >> } >> >> *i also tried with "absent" and '' absent'' . > > I think it is ensure => absent > > enable is to disable the repo, but to keep the information on disk. > However the type seems to assume enable => true for every option > different than false or 0. > >> so, default option in site.pp is mandataory for the type? > > I don''t think so. However if you look at the yum-module I wrote > (http://git.puppet.immerda.ch/?p=module-yum.git) I manage the whole > directory of yum.repos.d to get rid off unmanaged repos. > > cheers pete.Nice module may use it. Looking over it I did find one minor issue with the epel source: yum::managed_yumrepo { epel-source: descr => ''Extra Packages for Enterprise Linux $releasever - $basearch - Source'', mirrorlist => ''http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-$releasever&arch=$basearch'', enabled => 1, gpgcheck => 1, failovermethod => priority, failovermethod => ''priority'', gpgkey => ''file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL'', priority => 16, As you can see you have 2 failovermethod => ''priority'' entries. Nothing big thought you might want to know.. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> Nice module may use it. Looking over it I did find one minor issue > with the epel source: > > yum::managed_yumrepo { epel-source: > descr => ''Extra Packages for Enterprise Linux $releasever - > $basearch - Source'', > mirrorlist => > ''http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-$releasever&arch=$basearch'', > enabled => 1, > gpgcheck => 1, > failovermethod => priority, > failovermethod => ''priority'', > gpgkey => ''file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL'', > priority => 16, > > As you can see you have 2 failovermethod => ''priority'' entries. > Nothing big thought you might want to know..bleh, thanks. cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---