Hi, I am declaring class (for test) on my puppet master but when i want apply on my node i have the next error: [root@nodo1 ~]# puppet agent --test --noop Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class baseConf for nodo1.example.com on node nodo1.example.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run [root@nodo1 ~]# My structure puppet master is: [root@master puppet]# ll modules/baseConf/ files/ manifests/ templates/ My class: [root@master puppet]# less modules/baseConf/manifests/init.pp class baseConf { package { "telnet": ensure => present, ensure => running, } package { "nmap": ensure => present, ensure => running, } } My statement site.pp [root@master puppet]# less manifests/site.pp node ''nodo1.example.com'' { include baseConf } I check the sintax and the structure directory but i don undertand the problem. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
You have two values for ensure in you package resources. For services, you need two resources each. First, package, with ensure present to install the package. Second, service, with ensure running to start the service. Also, neither of those packages has an associated service. Perhaps you meant telnet-server? On Friday, March 8, 2013 3:37:11 PM UTC-8, mike wrote:> > Hi, > I am declaring class (for test) on my puppet master but when i want apply > on my node i have the next error: > > [root@nodo1 ~]# puppet agent --test --noop > Info: Retrieving plugin > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find class baseConf for nodo1.example.com on node > nodo1.example.com > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > [root@nodo1 ~]# > > My structure puppet master is: > > [root@master puppet]# ll modules/baseConf/ > files/ manifests/ templates/ > > My class: > > [root@master puppet]# less modules/baseConf/manifests/init.pp > class baseConf { > > package { "telnet": ensure => present, ensure => running, } > package { "nmap": ensure => present, ensure => running, } > > } > > My statement site.pp > > [root@master puppet]# less manifests/site.pp > > node ''nodo1.example.com'' { > include baseConf > } > > > I check the sintax and the structure directory but i don undertand the > problem. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Thanks i solved with your suggestion El viernes, 8 de marzo de 2013 20:37:11 UTC-3, mike escribió:> > Hi, > I am declaring class (for test) on my puppet master but when i want apply > on my node i have the next error: > > [root@nodo1 ~]# puppet agent --test --noop > Info: Retrieving plugin > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find class baseConf for nodo1.example.com on node > nodo1.example.com > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > [root@nodo1 ~]# > > My structure puppet master is: > > [root@master puppet]# ll modules/baseConf/ > files/ manifests/ templates/ > > My class: > > [root@master puppet]# less modules/baseConf/manifests/init.pp > class baseConf { > > package { "telnet": ensure => present, ensure => running, } > package { "nmap": ensure => present, ensure => running, } > > } > > My statement site.pp > > [root@master puppet]# less manifests/site.pp > > node ''nodo1.example.com'' { > include baseConf > } > > > I check the sintax and the structure directory but i don undertand the > problem. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.