Skip to content

Instantly share code, notes, and snippets.

@thoraxe
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoraxe/9769071 to your computer and use it in GitHub Desktop.
Save thoraxe/9769071 to your computer and use it in GitHub Desktop.
class motd ($message = 'This is the default message') {
file { '/etc/motd':
content => "$message \n",
}
}
[root@client-10 ~]# puppet agent --test --noop
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find client-10.ejacobs.local via exec: Execution of '/etc/puppet/node.rb client-10.ejacobs.local' returned 1:
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://satellite.ejacobs.local/plugins
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node client-10.ejacobs.local: Failed to find client-10.ejacobs.local via exec: Execution of '/etc/puppet/node.rb client-10.ejacobs.local' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Welcome to ACME Corporation!
You are logged into <%= host.fqdn %> - be careful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment