Difference between revisions of "Puppet apply my first puppet example.pp"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | [[puppet apply]] | ||
+ | |||
my_first_puppet_example.pp | my_first_puppet_example.pp | ||
Revision as of 13:03, 19 May 2022
puppet apply
my_first_puppet_example.pp
file {'/tmp/my-example-ip': content => "hello world!", }
puppet apply my_first_puppet_example.pp
/usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:315: warning: deprecated Object#=~ is called on Puppet::Transaction::Report; it always returns nil /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete Notice: Compiled catalog for kk in environment production in 0.02 seconds /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:315: warning: deprecated Object#=~ is called on Puppet::Transaction::Report; it always returns nil /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0 Notice: /Stage[main]/Main/File[/tmp/my-example-ip]/ensure: defined content as '{md5}fc3ff98e8c6a0d3087d515c0473f8677' /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0 Notice: Applied catalog in 0.03 seconds /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0 /usr/lib/ruby/vendor_ruby/puppet/util.rb:315: warning: deprecated Object#=~ is called on Puppet::Transaction::Report; it always returns nil /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0
Example
puppet apply hellopuppet.pp Notice: Compiled catalog for task-server.ec2.internal in environment production in 0.04 seconds Notice: /Stage[main]/Main/File[/var/save/puppet_hello/hellopuppet.txt]/ensure: defined content as '{md5}2089058a2eb049f4f2c3ce90e08237f4' Notice: Finished catalog run in 0.02 seconds
See also
Advertising: