Apologies. It's working now but I'm not sure why.
I created a new repository module init.pp from scratch, walking
through examples again and it's working correctly. Diff between the 2
init.pp files I can't see anything.

Maybe in some small way this may help others with general
troubleshooting.

Michael, thanks again for your assistence, and your efforts towards
this community.

On Apr 19, 9:34 am, scarts <[email protected]> wrote:
> I think this should fill in the blanks.
> Because this is a test environment I've stripped down the config to
> what I believe to be close to minimum.
>
> PUPPETMASTER:
> ********
> # puppet --version
> 2.6.5
> ********
> ********
> /etc/puppet/puppet.conf: <cut>
>     # The configuration file for master.
>     # The default value is '$confdir/puppet.conf'.
>     config = /etc/puppet/puppet.conf
>
>     # The entry-point manifest for puppet master.
>     # The default value is '$manifestdir/site.pp'.
>     manifest = /etc/puppet/manifests/site.pp
> <cut>
>     # The search path for modules as a colon-separated list of
>     # directories.
>     # The default value is '$confdir/modules:/usr/share/puppet/
> modules'.
>     modulepath = /etc/puppet/modules:/usr/share/puppet/modules
>
>     # Where puppet master looks for its manifests.
>     # The default value is '$confdir/manifests'.
>     manifestdir = /etc/puppet/manifests
> <cut>
> ********
> ********
> /etc/puppet/manifests # cat modules.pp
> import 'testfile'
> import 'repositories'
> ********
> ********
> /etc/puppet/manifests # cat site.pp
> import "nodes/*"
> ********
> ********
> /etc/puppet/manifests/nodes # cat basenode.pp
> # Top level node that everything inherits from
> #import "*/*"
>
> node basenode {
>
>   Package {
>     provider => $operatingsystem ? {
>       SLES => zypper,
>     }
>   }
>
> }
>
> node serverX inherits basenode {
>
>   include repositories
>
> }
>
> ********
> ********
> /etc/puppet/modules/repositories # ls -R
> .:
> lib  manifests
>
> ./lib:
> puppet
>
> ./lib/puppet:
> type
>
> ./lib/puppet/type:
> zypprepo.rb
>
> ./manifests:
> init.pp
> ********
> ********
> /etc/puppet/modules/repositories # cat manifests/init.pp
> class repositories {
>
>   case $operatingsystem {
>     SLES:       {
>
>       zypprepo {"LSE-SLES11":
>         descr           => "LSE YaST repository",
>         autorefresh     => 1,
>         type            => "yum",
>         path            => "/",
>         keeppackages    => 0,
>         gpgcheck        => 0,
>         baseurl         => "nfs://10.0.0.1/data/install/LSE/SLES11/",
>         enabled           => 1,
>       }
>
>       zypprepo {"SUSE-Linux-Enterprise-Server-11":
>         descr           => "SUSE-Linux-Enterprise-Server-11 11-0",
>         autorefresh     => 1,
>         type            => "yast2",
>         path            => "/",
>         keeppackages    => 0,
>         baseurl         => "nfs://10.0.0.1/data/install/SLES11-x86_64-
> GM/",
>         enabled           => 1,
>       }
>
>       zypprepo {"SUSE-Linux-Enterprise-Software-Development-
> Kit-11_11-0":
>         descr           => "SUSE-Linux-Enterprise-Software-Development-
> Kit-11 11-0",
>         autorefresh     => 1,
>         type            => "yast2",
>         path            => "/",
>         keeppackages    => 0,
>         baseurl         => => "nfs://10.0.0.1/data/install/SLE-11-SDK-
> DVD-x86_64-GM-Media1/",
>         enabled           => 1,
>       }
>     }
>   }
>
> }
>
> PUPPET CLIENT:
> ********
> serverX:/ # puppetd --version
> 2.6.5
> ********
> ********
> serverX:/ # ps -ef | grep pupp
> root      8855 26185  0 09:21 pts/4    00:00:00 grep pupp
> ********
> serverX:/ # find / -name zypprepo.rb
> /var/lib/puppet/lib/provider/package/zypprepo.rb
> ********
> serverX:/ # puppetd --server puppet.t-tsr-ops.stockex.com --test --
> debug --tags zypprepo
> debug: Failed to load library 'rubygems' for feature 'rubygems'
> debug: Failed to load library 'selinux' for feature 'selinux'
> debug: Failed to load library 'shadow' for feature 'libshadow'
> debug: Failed to load library 'ldap' for feature 'ldap'
> debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
> debug: Puppet::Type::User::ProviderUser_role_add: file roledel does
> not exist
> debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/
> dscl does not exist
> debug: Puppet::Type::User::ProviderPw: file pw does not exist
> debug: Puppet::Type::File::ProviderMicrosoft_windows: feature
> microsoft_windows is missing
> debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
> debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/
> var/lib/puppet/ssl/certs]
> debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/var/lib/puppet/classes.txt]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/
> lib/puppet/state]
> debug: /File[/var/lib/puppet/ssl/private_keys/
> serverX.somedomain.com.pem]: Autorequiring File[/var/lib/puppet/ssl/
> private_keys]
> debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
> debug: /File[/var/lib/puppet/ssl/certs/serverX.somedomain.com.pem]:
> Autorequiring File[/var/lib/puppet/ssl/certs]
> debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring
> File[/var/lib/puppet/ssl]
> debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/
> var/lib/puppet/state]
> debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/
> lib/puppet]
> debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/
> puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/public_keys/
> serverX.somedomain.com.pem]: Autorequiring File[/var/lib/puppet/ssl/
> public_keys]
> debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/
> lib/puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/
> puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/
> puppet/ssl]
> debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
> debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/
> var/lib/puppet/ssl]
> debug: Finishing transaction 70071335720380
> debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/
> puppet/ssl]
> debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
> debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
> debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/
> lib/puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/
> puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring
> File[/var/lib/puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/certs/serverX.somedomain.com.pem]:
> Autorequiring File[/var/lib/puppet/ssl/certs]
> debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/
> puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/
> var/lib/puppet/ssl]
> debug: /File[/var/lib/puppet/ssl/private_keys/
> serverX.somedomain.com.pem]: Autorequiring File[/var/lib/puppet/ssl/
> private_keys]
> debug: /File[/var/lib/puppet/ssl/public_keys/
> serverX.somedomain.com.pem]: Autorequiring File[/var/lib/puppet/ssl/
> public_keys]
> debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/
> puppet]
> debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/
> var/lib/puppet/ssl/certs]
> debug: Finishing transaction 70071335742480
> debug: Using cached certificate for ca
> debug: Using cached certificate for serverX.somedomain.com
> debug: Finishing transaction 70071335315320
> debug: Loaded state in 0.00 seconds
> info: Retrieving plugin
> debug: Loaded state in 0.00 seconds
> debug: /File[/var/lib/puppet/lib]: Not tagged with zypprepo
> info: /File[/var/lib/puppet/lib]: Evaluated in 0.00 seconds
> debug: Finishing transaction 70071335166200
> debug: Storing state
> debug: Stored state in 0.00 seconds
> debug: Using cached certificate for ca
> debug: Using cached certificate for serverX.somedomain.com
> debug: Using cached certificate_revocation_list for ca
> debug: catalog supports formats: b64_zlib_yaml dot marshal pson raw
> yaml; using pson
> info: Caching catalog for serverX.somedomain.com
> debug: Creating default schedules
> debug: Loaded state in 0.00 seconds
> info: Applying configuration version '1303201355'
> debug: /Schedule[hourly]: Not tagged with zypprepo
> info: /Schedule[hourly]: Evaluated in 0.00 seconds
> debug: /Schedule[never]: Not tagged with zypprepo
> info: /Schedule[never]: Evaluated in 0.00 seconds
> debug: /Schedule[daily]: Not tagged with zypprepo
> info: /Schedule[daily]: Evaluated in 0.00 seconds
> debug: /Schedule[monthly]: Not tagged with zypprepo
> info: /Schedule[monthly]: Evaluated in 0.00 seconds
> debug: /Schedule[weekly]: Not tagged with zypprepo
> info: /Schedule[weekly]: Evaluated in 0.00 seconds
> debug: /Schedule[puppet]: Not tagged with zypprepo
> info: /Schedule[puppet]: Evaluated in 0.00 seconds
> debug: /Filebucket[puppet]: Not tagged with zypprepo
> info: /Filebucket[puppet]: Evaluated in 0.00 seconds
> debug: Finishing transaction 70071335893200
> debug: Storing state
> debug: Stored state in 0.00 seconds
> notice: Finished catalog run in 0.01 seconds
> *********

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to