sorry, I posted missing content. 
I had already specified node. 
Follow the correct manifest: 

node switch.mydomain {
>    interface {
>       "GigabitEthernet1/0/1":
>        description => "teste",
>    }
> }


yet the problem continues.

Em sexta-feira, 22 de agosto de 2014 17h36min33s UTC-3, Nan Liu escreveu:
>
> On Fri, Aug 22, 2014 at 12:10 PM, Nathan Brito <natha...@gmail.com 
> <javascript:>> wrote:
>
>> I'm trying to apply settings on a Cisco Catalyst 2960S through the 
>> puppet, but I can not. 
>>
>> When I give the "device #puppet verbose" command, the puppet does not 
>> return me error but does not apply the manifest. 
>>
>>
>> *Follows the return of the command:*
>>
>> #puppet device --verbose
>>> Info: starting applying configuration to switch.mydomain at 
>>> telnet://admin:admin@switch.mydomain
>>> Info: Retrieving pluginfacts
>>> Info: Retrieving plugin
>>> Info: Caching catalog for switch.mydomain
>>> Info: Applying configuration version '1408732346'
>>> Notice: Finished catalog run in 0.05 seconds
>>
>>
>>
>> */etc/puppet/puppet.conf:*
>>
>> [main]
>>> logdir=/var/log/puppet
>>> vardir=/var/lib/puppet
>>> ssldir=/var/lib/puppet/ssl
>>> rundir=/var/run/puppet
>>> factpath=$vardir/lib/facter
>>> #templatedir=$confdir/templates
>>> [master]
>>> # These are needed when the puppetmaster is run by passenger
>>> # and can safely be removed if webrick is used.
>>> ssl_client_header = SSL_CLIENT_S_DN
>>> ssl_client_verify_header = SSL_CLIENT_VERIFY
>>> dns_alt_names = puppetmaster,puppetmaster.mydomain
>>
>>
>> */etc/puppet/device.conf*
>>
>> [switch.mydomain]
>>> type cisco
>>> url telnet://admin:admin@switch.mydomain
>>>
>>
>>  
>> *Manifest: /etc/puppet/manifests/switch.pp*
>>  
>>
>>> interface {
>>>       "GigabitEthernet0/1":
>>>         description => "puppet test",
>>>     }
>>> }
>>
>>
>
> I think this needs to be under a node that matches your device.conf 
> setting, so site.pp:
>
> node switch.mydomain {
>   interface { ...
>   }
> } 
>
> HTH,
>
> Nan
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5363ef17-90ee-46f0-aec1-bee39e00556a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to