Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Created February 13, 2014 14:37
Show Gist options
  • Save fiddyspence/8976111 to your computer and use it in GitHub Desktop.
Save fiddyspence/8976111 to your computer and use it in GitHub Desktop.
[root@master2 ntp]# cat foo.pp
class { 'ntp': foo => false }
include ntp
[root@master2 ntp]# puppet apply foo.pp
Notice: Compiled catalog for master2 in environment production in 1.28 seconds
Notice: Finished catalog run in 0.89 seconds
[root@master2 ntp]# vi foo.pp
[root@master2 ntp]# cat foo.pp
include ntp
class { 'ntp': foo => false }
include ntp
[root@master2 ntp]# puppet apply foo.pp
Error: Duplicate declaration: Class[Ntp] is already declared; cannot redeclare at /etc/puppetlabs/puppet/environments/production/modules/ntp/foo.pp:3 on node master2
Error: Duplicate declaration: Class[Ntp] is already declared; cannot redeclare at /etc/puppetlabs/puppet/environments/production/modules/ntp/foo.pp:3 on node master2
[root@master2 ntp]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment