Skip to content

Instantly share code, notes, and snippets.

# works
puppet apply -e "notice($::ec2_metadata['instance-type'])"
Notice: Scope(Class[main]): m1.small
# doesn't work
puppet apply -e "notice($ec2_metadata['instance-type'])"
Notice: Scope(Class[main]): [instance-type]

Keybase proof

I hereby claim:

  • I am andytinycat on github.
  • I am andys (https://keybase.io/andys) on keybase.
  • I have a public key whose fingerprint is 2823 D5A4 70AD 3028 C250 D355 7065 2A6B 9AA3 20F8

To claim this, I am signing this object:

:backends:
- yaml
:yaml:
:datadir: /etc/puppet/hieradata
:hierarchy:
- %{::clientcert}
- common
hiera -d "check_load" -c /etc/puppet/hiera.yaml
/usr/lib/ruby/1.9.1/psych.rb:154:in `parse': (/etc/puppet/hiera.yaml): couldn't parse YAML at line 5 column 4 (Psych::SyntaxError)
catalog.resource_keys.collect {|type,name|
if type == "File"
resource = catalog.resource(type,name)
puts "#{resource.title} file: #{resource.file} line: #{resource.line}"
end
}
err: Failed to submit 'deactivate node' command for vscano-a-new.ucl.ac.uk to PuppetDB at puppet-master-a.isdha.ucl.ac.uk:8081: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A
err: Try 'puppet help node deactivate' for usage