From 5416017c05e44fc635ad14ffdf1ac1163a4cc6e5 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 13 Apr 2005 15:23:57 +0000 Subject: reorganizing git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@95 980ebf18-57e1-0310-9a29-db15c13687c0 --- examples/objects | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 examples/objects (limited to 'examples/objects') diff --git a/examples/objects b/examples/objects new file mode 100644 index 000000000..4c4e6cf8b --- /dev/null +++ b/examples/objects @@ -0,0 +1,25 @@ +type = filetype["colon-separated"] { + :recordseparator => "\n" + :fieldseparator => "\n" + :fields = %{name password uid gid ....} + :namefield = "name" +} + +passwd = filetype["colon-separated"].new("/etc/passwd") +shadow = filetype["colon-separated"].new("/etc/shadow") + +user = jointype { + passwd => "name" + shadow => "name" +} + +passwd = type["/etc/passwd"] + + +user.new() + + +passwd["yaytest"] = { + :uid => 100 + ... +} -- cgit