(no commit message) master
authorChristian Weiske <cweiske@cweiske.de>
Thu, 17 Apr 2014 09:17:20 +0000 (11:17 +0200)
committerwww-cweiske <www-cweiske@localhost.localdomain>
Thu, 17 Apr 2014 09:17:20 +0000 (11:17 +0200)
README.rst [new file with mode: 0644]
commands.sh [new file with mode: 0644]
remove-katie.rb [new file with mode: 0644]

diff --git a/README.rst b/README.rst
new file mode 100644 (file)
index 0000000..cce3702
--- /dev/null
@@ -0,0 +1,5 @@
+Problem: Running the first puppet manifest from the learning__ tutorial gives me a syntax error.\r
+\r
+Solution: use ``.pp`` instead of ``.rb`` file extension for the manifest.\r
+\r
+__ http://docs.puppetlabs.com/learning/manifests.html
\ No newline at end of file
diff --git a/commands.sh b/commands.sh
new file mode 100644 (file)
index 0000000..0b84827
--- /dev/null
@@ -0,0 +1,29 @@
+$ puppet --version\r
+2.7.23\r
+$ puppet apply remove-katie.rb \r
+/usr/lib/ruby/vendor_ruby/puppet/parser/parser_support.rb:200:in `parse_ruby_file': (eval):3:in `parse_ruby_file': compile error (SyntaxError)\r
+(eval):1: syntax error, unexpected ':', expecting '}'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/parser/parser_support.rb:157:in `parse'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/node/environment.rb:199:in `perform_initial_import'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/node/environment.rb:85:in `known_resource_types'\r
+       from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/node/environment.rb:82:in `known_resource_types'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/resource/type_collection_helper.rb:5:in `known_resource_types'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:420:in `initvars'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:186:in `initialize'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:24:in `new'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:24:in `compile'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:84:in `compile'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/util.rb:166:in `benchmark'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:82:in `compile'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:42:in `find'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:195:in `find'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:218:in `main'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:149:in `run_command'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application.rb:309:in `run'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application.rb:416:in `hook'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application.rb:309:in `run'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application.rb:407:in `exit_on_fail'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/application.rb:309:in `run'\r
+       from /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:69:in `execute'\r
+       from /usr/bin/puppet:4\r
diff --git a/remove-katie.rb b/remove-katie.rb
new file mode 100644 (file)
index 0000000..aae1f49
--- /dev/null
@@ -0,0 +1,3 @@
+user {'katie':\r
+  ensure  => absent,\r
+}\r