puppet 0.24.4 → 0.24.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- data/CHANGELOG +170 -0
- data/Rakefile +6 -4
- data/bin/filebucket +3 -2
- data/bin/puppet +7 -4
- data/bin/puppetca +32 -14
- data/bin/puppetd +12 -34
- data/bin/puppetmasterd +3 -2
- data/bin/puppetrun +5 -43
- data/bin/ralsh +2 -2
- data/conf/debian/README.source +2 -0
- data/conf/debian/TODO.Debian +1 -0
- data/conf/debian/changelog +257 -0
- data/conf/debian/compat +1 -0
- data/conf/debian/control +45 -0
- data/conf/debian/copyright +17 -0
- data/conf/debian/docs +1 -0
- data/conf/debian/fileserver.conf +12 -0
- data/conf/debian/puppet.NEWS +63 -0
- data/conf/debian/puppet.conf +8 -0
- data/conf/debian/puppet.dirs +7 -0
- data/conf/debian/puppet.files +6 -0
- data/conf/debian/puppet.init +64 -0
- data/conf/debian/puppet.logrotate +11 -0
- data/conf/debian/puppet.postinst +9 -0
- data/conf/debian/puppet.postrm +21 -0
- data/conf/debian/puppet.preinst +25 -0
- data/conf/debian/puppetmaster.files +4 -0
- data/conf/debian/puppetmaster.init +58 -0
- data/conf/debian/rules +115 -0
- data/conf/debian/watch +2 -0
- data/conf/gentoo/init.d/puppet +1 -1
- data/conf/gentoo/init.d/puppetmaster +32 -31
- data/conf/redhat/client.init +10 -2
- data/conf/redhat/puppet.spec +4 -1
- data/conf/redhat/server.init +9 -1
- data/examples/{code/allatonce → allatonce} +0 -0
- data/examples/{code/assignments → assignments} +0 -0
- data/examples/{code/components → components} +0 -0
- data/examples/{root/etc → etc}/init.d/sleeper +0 -0
- data/examples/{root/etc → etc}/otherfile +0 -0
- data/examples/{root/etc → etc}/puppet/fileserver.conf +0 -0
- data/examples/{root/etc → etc}/puppet/namespaceauth.conf +0 -0
- data/examples/{root/etc → etc}/puppet/puppet.conf +0 -0
- data/examples/{root/etc → etc}/puppet/tagmail.conf +0 -0
- data/examples/{code/execs → execs} +0 -0
- data/examples/{code/file.bl → file.bl} +0 -0
- data/examples/{code/filedefaults → filedefaults} +0 -0
- data/examples/{code/fileparsing → fileparsing} +0 -0
- data/examples/{code/filerecursion → filerecursion} +0 -0
- data/examples/{code/functions → functions} +0 -0
- data/examples/{code/groups → groups} +0 -0
- data/examples/{code/head → head} +0 -0
- data/examples/{code/importing → importing} +0 -0
- data/examples/{code/mac_automount.pp → mac_automount.pp} +0 -0
- data/examples/{code/mac_dscl.pp → mac_dscl.pp} +0 -0
- data/examples/{code/mac_dscl_revert.pp → mac_dscl_revert.pp} +0 -0
- data/examples/{code/mac_netinfo.pp → mac_netinfo.pp} +0 -0
- data/examples/{code/mac_pkgdmg.pp → mac_pkgdmg.pp} +0 -0
- data/examples/{code/modules → modules}/sample-module.pp +0 -0
- data/examples/{code/modules → modules}/sample-module/README.txt +0 -0
- data/examples/{code/modules → modules}/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb +0 -0
- data/examples/{code/modules → modules}/sample-module/manifests/init.pp +0 -0
- data/examples/{code/modules → modules}/sample-module/templates/sample.erb +0 -0
- data/examples/{code/nodes → nodes} +0 -0
- data/examples/{code/one → one} +0 -0
- data/examples/{code/relationships → relationships} +0 -0
- data/examples/{code/selectors → selectors} +0 -0
- data/examples/{code/simpletests → simpletests} +0 -0
- data/examples/{code/svncommit → svncommit} +0 -0
- data/ext/autotest/Rakefile +8 -0
- data/ext/autotest/config +43 -0
- data/ext/autotest/readme.rst +16 -0
- data/{examples/root → ext}/bin/sleeper +1 -1
- data/ext/emacs/puppet-mode.el +246 -184
- data/ext/ldap/puppet.schema +7 -2
- data/ext/module_puppet +4 -3
- data/ext/nagios/check_puppet.rb +117 -0
- data/ext/puppetlast +40 -0
- data/install.rb +12 -3
- data/lib/puppet.rb +1 -44
- data/lib/puppet/defaults.rb +23 -10
- data/lib/puppet/dsl.rb +2 -2
- data/lib/puppet/executables/client/certhandler.rb +77 -0
- data/lib/puppet/external/nagios.rb +1 -1
- data/lib/puppet/external/nagios/base.rb +60 -46
- data/lib/puppet/file_serving/indirection_hooks.rb +4 -2
- data/lib/puppet/file_serving/metadata.rb +0 -9
- data/lib/puppet/file_serving/terminus_helper.rb +4 -4
- data/lib/puppet/indirector.rb +26 -28
- data/lib/puppet/indirector/catalog/compiler.rb +6 -28
- data/lib/puppet/indirector/checksum/file.rb +2 -2
- data/lib/puppet/indirector/direct_file_server.rb +7 -7
- data/lib/puppet/indirector/envelope.rb +13 -0
- data/lib/puppet/indirector/exec.rb +2 -2
- data/lib/puppet/indirector/facts/facter.rb +2 -2
- data/lib/puppet/indirector/file.rb +17 -14
- data/lib/puppet/indirector/file_metadata/file.rb +2 -2
- data/lib/puppet/indirector/file_server.rb +14 -14
- data/lib/puppet/indirector/indirection.rb +113 -48
- data/lib/puppet/indirector/ldap.rb +13 -25
- data/lib/puppet/indirector/memory.rb +7 -7
- data/lib/puppet/indirector/module_files.rb +14 -14
- data/lib/puppet/indirector/node/exec.rb +3 -10
- data/lib/puppet/indirector/node/ldap.rb +138 -41
- data/lib/puppet/indirector/node/plain.rb +1 -8
- data/lib/puppet/indirector/node/rest.rb +1 -1
- data/lib/puppet/indirector/plain.rb +2 -2
- data/lib/puppet/indirector/report/processor.rb +2 -2
- data/lib/puppet/indirector/request.rb +42 -0
- data/lib/puppet/indirector/rest.rb +51 -3
- data/lib/puppet/indirector/terminus.rb +0 -27
- data/lib/puppet/indirector/yaml.rb +12 -17
- data/lib/puppet/metatype/attributes.rb +3 -7
- data/lib/puppet/metatype/evaluation.rb +2 -2
- data/lib/puppet/module.rb +6 -2
- data/lib/puppet/network/client/master.rb +29 -81
- data/lib/puppet/network/handler/master.rb +12 -43
- data/lib/puppet/network/http.rb +8 -6
- data/lib/puppet/network/http/handler.rb +42 -32
- data/lib/puppet/network/http/mongrel.rb +8 -9
- data/lib/puppet/network/http/mongrel/rest.rb +42 -15
- data/lib/puppet/network/http/webrick.rb +27 -16
- data/lib/puppet/network/http/webrick/rest.rb +38 -14
- data/lib/puppet/network/http_pool.rb +3 -2
- data/lib/puppet/network/server.rb +24 -22
- data/lib/puppet/network/xmlrpc/client.rb +6 -1
- data/lib/puppet/node.rb +38 -79
- data/lib/puppet/node/catalog.rb +9 -0
- data/lib/puppet/node/facts.rb +9 -1
- data/lib/puppet/parser/ast/function.rb +1 -1
- data/lib/puppet/parser/collector.rb +6 -0
- data/lib/puppet/parser/compiler.rb +1 -1
- data/lib/puppet/parser/functions.rb +25 -1
- data/lib/puppet/parser/interpreter.rb +2 -17
- data/lib/puppet/parser/parser.rb +4 -4
- data/lib/puppet/parser/parser_support.rb +6 -2
- data/lib/puppet/parser/resource.rb +6 -0
- data/lib/puppet/parser/templatewrapper.rb +9 -0
- data/lib/puppet/pgraph.rb +1 -1
- data/lib/puppet/property.rb +0 -1
- data/lib/puppet/provider.rb +9 -95
- data/lib/puppet/provider/confine.rb +77 -0
- data/lib/puppet/provider/confine/exists.rb +22 -0
- data/lib/puppet/provider/confine/false.rb +19 -0
- data/lib/puppet/provider/confine/feature.rb +17 -0
- data/lib/puppet/provider/confine/true.rb +20 -0
- data/lib/puppet/provider/confine/variable.rb +42 -0
- data/lib/puppet/provider/confine_collection.rb +47 -0
- data/lib/puppet/provider/confiner.rb +20 -0
- data/lib/puppet/provider/cron/crontab.rb +6 -2
- data/lib/puppet/provider/group/groupadd.rb +1 -1
- data/lib/puppet/provider/group/ldap.rb +48 -0
- data/lib/puppet/provider/ldap.rb +137 -0
- data/lib/puppet/provider/nameservice.rb +1 -2
- data/lib/puppet/provider/nameservice/objectadd.rb +2 -5
- data/lib/puppet/provider/package/dpkg.rb +16 -1
- data/lib/puppet/provider/package/freebsd.rb +15 -4
- data/lib/puppet/provider/package/gem.rb +33 -12
- data/lib/puppet/provider/package/pkgdmg.rb +1 -60
- data/lib/puppet/provider/package/ports.rb +6 -1
- data/lib/puppet/provider/package/rpm.rb +14 -13
- data/lib/puppet/provider/package/urpmi.rb +3 -3
- data/lib/puppet/provider/service/base.rb +4 -4
- data/lib/puppet/provider/service/debian.rb +1 -1
- data/lib/puppet/provider/service/init.rb +5 -3
- data/lib/puppet/provider/service/redhat.rb +35 -7
- data/lib/puppet/provider/ssh_authorized_key/parsed.rb +69 -0
- data/lib/puppet/provider/user/ldap.rb +133 -0
- data/lib/puppet/provider/user/useradd.rb +1 -1
- data/lib/puppet/rails/database/001_add_created_at_to_all_tables.rb +14 -14
- data/lib/puppet/rails/database/schema.rb +9 -0
- data/lib/puppet/rails/resource.rb +1 -0
- data/lib/puppet/reference/providers.rb +8 -2
- data/lib/puppet/reference/report.rb +23 -0
- data/lib/puppet/reports/rrdgraph.rb +4 -2
- data/lib/puppet/sslcertificates/ca.rb +9 -4
- data/lib/puppet/sslcertificates/support.rb +26 -2
- data/lib/puppet/transaction.rb +11 -16
- data/lib/puppet/transaction/change.rb +94 -0
- data/lib/puppet/transaction/event.rb +21 -0
- data/lib/puppet/transaction/report.rb +4 -0
- data/lib/puppet/type.rb +0 -2
- data/lib/puppet/type/file/ensure.rb +0 -5
- data/lib/puppet/type/file/group.rb +13 -7
- data/lib/puppet/type/file/source.rb +8 -15
- data/lib/puppet/type/file/target.rb +2 -0
- data/lib/puppet/type/group.rb +1 -1
- data/lib/puppet/type/mount.rb +4 -2
- data/lib/puppet/type/nagios_hostescalation.rb +3 -0
- data/lib/puppet/type/nagios_servicegroup.rb +3 -0
- data/lib/puppet/type/ssh_authorized_key.rb +56 -0
- data/lib/puppet/type/user.rb +3 -0
- data/lib/puppet/type/yumrepo.rb +0 -1
- data/lib/puppet/util.rb +1 -1
- data/lib/puppet/util/ldap.rb +5 -0
- data/lib/puppet/util/ldap/connection.rb +69 -0
- data/lib/puppet/util/ldap/generator.rb +45 -0
- data/lib/puppet/util/ldap/manager.rb +281 -0
- data/lib/puppet/util/posix.rb +2 -2
- data/lib/puppet/util/resource_template.rb +61 -0
- data/lib/puppet/util/settings.rb +63 -3
- data/lib/puppet/util/storage.rb +4 -0
- data/lib/puppet/util/warnings.rb +7 -0
- data/man/man8/filebucket.8 +116 -0
- data/man/man8/pi.8 +34 -0
- data/man/man8/puppet.8 +78 -0
- data/man/man8/puppet.conf.8 +1747 -0
- data/man/man8/puppetca.8 +118 -0
- data/man/man8/puppetd.8 +184 -0
- data/man/man8/puppetdoc.8 +62 -0
- data/man/man8/puppetmasterd.8 +87 -0
- data/man/man8/puppetrun.8 +151 -0
- data/man/man8/ralsh.8 +135 -0
- data/test/README +24 -0
- data/test/certmgr/support.rb +28 -1
- data/test/data/failers/badclassnoparam +10 -0
- data/test/data/failers/badclassparam +10 -0
- data/test/data/failers/badcompnoparam +9 -0
- data/test/data/failers/badcompparam +9 -0
- data/test/data/failers/badtypeparam +3 -0
- data/test/data/failers/noobjectrvalue +1 -0
- data/test/data/providers/cron/crontab.allthree +17 -0
- data/test/data/providers/cron/crontab.envNcomment +12 -0
- data/test/data/providers/cron/crontab.envNname +11 -0
- data/test/data/providers/cron/crontab.multirecords +12 -0
- data/test/data/providers/cron/crontab_collections.yaml +44 -0
- data/test/data/providers/cron/crontab_multiple_with_env.yaml +54 -0
- data/test/data/providers/cron/crontab_sample_records.yaml +272 -0
- data/test/data/providers/cron/examples/freebsd +2 -0
- data/test/data/providers/cron/examples/one +14 -0
- data/test/data/providers/cron/examples/openbsd +20 -0
- data/test/data/providers/package/testpackages.yaml +65 -0
- data/test/data/providers/ssh_authorized_key/parsed/authorized_keys +5 -0
- data/test/data/reports/1.yaml +108 -0
- data/test/data/reports/2.yaml +108 -0
- data/test/data/reports/tagmail_failers.conf +3 -0
- data/test/data/reports/tagmail_passers.conf +30 -0
- data/test/data/snippets/aliastest.pp +16 -0
- data/test/data/snippets/argumentdefaults +14 -0
- data/test/data/snippets/casestatement.pp +58 -0
- data/test/data/snippets/classheirarchy.pp +15 -0
- data/test/data/snippets/classincludes.pp +17 -0
- data/test/data/snippets/classpathtest +11 -0
- data/test/data/snippets/collection.pp +10 -0
- data/test/data/snippets/collection_within_virtual_definitions.pp +20 -0
- data/test/data/snippets/componentmetaparams.pp +11 -0
- data/test/data/snippets/componentrequire.pp +8 -0
- data/test/data/snippets/deepclassheirarchy.pp +23 -0
- data/test/data/snippets/defineoverrides.pp +17 -0
- data/test/data/snippets/emptyclass.pp +9 -0
- data/test/data/snippets/emptyexec.pp +3 -0
- data/test/data/snippets/falsevalues.pp +3 -0
- data/test/data/snippets/filecreate +11 -0
- data/test/data/snippets/fqdefinition.pp +5 -0
- data/test/data/snippets/fqparents.pp +11 -0
- data/test/data/snippets/implicititeration +15 -0
- data/test/data/snippets/multipleinstances +7 -0
- data/test/data/snippets/multisubs.pp +13 -0
- data/test/data/snippets/namevartest +9 -0
- data/test/data/snippets/scopetest +13 -0
- data/test/data/snippets/selectorvalues.pp +42 -0
- data/test/data/snippets/simpledefaults +5 -0
- data/test/data/snippets/simpleselector +38 -0
- data/test/data/snippets/singleary.pp +19 -0
- data/test/data/snippets/singlequote.pp +11 -0
- data/test/data/snippets/singleselector.pp +22 -0
- data/test/data/snippets/subclass_name_duplication.pp +11 -0
- data/test/data/snippets/tag.pp +9 -0
- data/test/data/snippets/tagged.pp +35 -0
- data/test/data/snippets/virtualresources.pp +14 -0
- data/test/data/types/hosts/1 +3 -0
- data/test/data/types/hosts/2 +13 -0
- data/test/data/types/hosts/solaris +5 -0
- data/test/data/types/mailalias/file1 +183 -0
- data/test/data/types/mount/freebsd.fstab +7 -0
- data/test/data/types/mount/linux.fstab +11 -0
- data/test/data/types/mount/solaris.fstab +11 -0
- data/test/data/types/port/1 +533 -0
- data/test/data/types/port/darwin +11866 -0
- data/test/data/types/ssh_authorized_key/1 +2 -0
- data/test/data/types/sshkey/1 +21 -0
- data/test/data/types/yumrepos/fedora-devel.repo +26 -0
- data/test/data/types/yumrepos/fedora.repo +9 -0
- data/test/language/parser.rb +8 -1
- data/test/lib/puppettest/runnable_test.rb +3 -0
- data/test/lib/puppettest/support/utils.rb +1 -1
- data/test/lib/rake/puppet_testtask.rb +3 -0
- data/test/lib/stubba.rb +1 -1
- data/test/network/client/ca.rb +1 -0
- data/test/network/client/master.rb +13 -127
- data/test/network/handler/master.rb +61 -80
- data/test/other/provider.rb +0 -45
- data/test/other/transactions.rb +53 -15
- data/test/rails/host.rb +0 -37
- data/test/ral/providers/cron/crontab.rb +32 -3
- data/test/ral/providers/provider.rb +28 -7
- data/test/ral/type/filesources.rb +2 -18
- data/test/ral/type/sshkey.rb +0 -1
- data/test/ral/type/user.rb +6 -0
- data/test/test +241 -0
- metadata +289 -113
- data/examples/root/etc/configfile +0 -0
- data/examples/root/etc/debian-passwd +0 -29
- data/examples/root/etc/debian-syslog.conf +0 -71
- data/lib/puppet/event.rb +0 -28
- data/lib/puppet/network/handler/configuration.rb +0 -184
- data/lib/puppet/network/http/mongrel/xmlrpc.rb +0 -4
- data/lib/puppet/network/http/webrick/xmlrpc.rb +0 -4
- data/lib/puppet/propertychange.rb +0 -141
- data/lib/puppet/provider/interface/redhat.rb +0 -250
- data/lib/puppet/provider/interface/sunos.rb +0 -133
- data/lib/puppet/type/interface.rb +0 -60
- data/lib/puppet/util/variables.rb +0 -38
- data/test/network/handler/configuration.rb +0 -160
- data/test/other/propertychange.rb +0 -140
- data/test/util/loadedfile.rb +0 -121
@@ -0,0 +1,8 @@
|
|
1
|
+
define testfile($mode) {
|
2
|
+
file { $name: mode => $mode, ensure => present }
|
3
|
+
}
|
4
|
+
|
5
|
+
testfile { "/tmp/testing_component_requires2": mode => 755 }
|
6
|
+
|
7
|
+
file { "/tmp/testing_component_requires1": mode => 755, ensure => present,
|
8
|
+
require => Testfile["/tmp/testing_component_requires2"] }
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# $Id$
|
2
|
+
|
3
|
+
class base {
|
4
|
+
file { "/tmp/deepclassheir1": ensure => file, mode => 755 }
|
5
|
+
}
|
6
|
+
|
7
|
+
class sub1 inherits base {
|
8
|
+
file { "/tmp/deepclassheir2": ensure => file, mode => 755 }
|
9
|
+
}
|
10
|
+
|
11
|
+
class sub2 inherits sub1 {
|
12
|
+
file { "/tmp/deepclassheir3": ensure => file, mode => 755 }
|
13
|
+
}
|
14
|
+
|
15
|
+
class sub3 inherits sub2 {
|
16
|
+
file { "/tmp/deepclassheir4": ensure => file, mode => 755 }
|
17
|
+
}
|
18
|
+
|
19
|
+
class sub4 inherits sub3 {
|
20
|
+
file { "/tmp/deepclassheir5": ensure => file, mode => 755 }
|
21
|
+
}
|
22
|
+
|
23
|
+
include sub4
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# $Id$
|
2
|
+
|
3
|
+
$file = "/tmp/defineoverrides1"
|
4
|
+
|
5
|
+
define myfile($mode) {
|
6
|
+
file { $name: ensure => file, mode => $mode }
|
7
|
+
}
|
8
|
+
|
9
|
+
class base {
|
10
|
+
myfile { $file: mode => 644 }
|
11
|
+
}
|
12
|
+
|
13
|
+
class sub inherits base {
|
14
|
+
Myfile[$file] { mode => 755, } # test the end-comma
|
15
|
+
}
|
16
|
+
|
17
|
+
include sub
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# $Id$
|
2
|
+
|
3
|
+
$files = ["/tmp/iterationatest", "/tmp/iterationbtest"]
|
4
|
+
|
5
|
+
file { $files: ensure => file, mode => 755 }
|
6
|
+
|
7
|
+
file { ["/tmp/iterationctest", "/tmp/iterationdtest"]:
|
8
|
+
ensure => file,
|
9
|
+
mode => 755
|
10
|
+
}
|
11
|
+
|
12
|
+
file {
|
13
|
+
["/tmp/iterationetest", "/tmp/iterationftest"]: ensure => file, mode => 755;
|
14
|
+
["/tmp/iterationgtest", "/tmp/iterationhtest"]: ensure => file, mode => 755;
|
15
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class base {
|
2
|
+
file { "/tmp/multisubtest": content => "base", mode => 644 }
|
3
|
+
}
|
4
|
+
|
5
|
+
class sub1 inherits base {
|
6
|
+
File["/tmp/multisubtest"] { mode => 755 }
|
7
|
+
}
|
8
|
+
|
9
|
+
class sub2 inherits base {
|
10
|
+
File["/tmp/multisubtest"] { content => sub2 }
|
11
|
+
}
|
12
|
+
|
13
|
+
include sub1, sub2
|
@@ -0,0 +1,42 @@
|
|
1
|
+
$value1 = ""
|
2
|
+
$value2 = true
|
3
|
+
$value3 = false
|
4
|
+
$value4 = yay
|
5
|
+
|
6
|
+
$test = "yay"
|
7
|
+
|
8
|
+
$mode1 = $value1 ? {
|
9
|
+
"" => 755,
|
10
|
+
default => 644
|
11
|
+
}
|
12
|
+
|
13
|
+
$mode2 = $value2 ? {
|
14
|
+
true => 755,
|
15
|
+
default => 644
|
16
|
+
}
|
17
|
+
|
18
|
+
$mode3 = $value3 ? {
|
19
|
+
false => 755,
|
20
|
+
default => 644
|
21
|
+
}
|
22
|
+
|
23
|
+
$mode4 = $value4 ? {
|
24
|
+
$test => 755,
|
25
|
+
default => 644
|
26
|
+
}
|
27
|
+
|
28
|
+
$mode5 = yay ? {
|
29
|
+
$test => 755,
|
30
|
+
default => 644
|
31
|
+
}
|
32
|
+
|
33
|
+
$mode6 = $mode5 ? {
|
34
|
+
755 => 755
|
35
|
+
}
|
36
|
+
|
37
|
+
file { "/tmp/selectorvalues1": ensure => file, mode => $mode1 }
|
38
|
+
file { "/tmp/selectorvalues2": ensure => file, mode => $mode2 }
|
39
|
+
file { "/tmp/selectorvalues3": ensure => file, mode => $mode3 }
|
40
|
+
file { "/tmp/selectorvalues4": ensure => file, mode => $mode4 }
|
41
|
+
file { "/tmp/selectorvalues5": ensure => file, mode => $mode5 }
|
42
|
+
file { "/tmp/selectorvalues6": ensure => file, mode => $mode6 }
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# $Id$
|
2
|
+
|
3
|
+
$var = "value"
|
4
|
+
|
5
|
+
file { "/tmp/snippetselectatest":
|
6
|
+
ensure => file,
|
7
|
+
mode => $var ? {
|
8
|
+
nottrue => 641,
|
9
|
+
value => 755
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
file { "/tmp/snippetselectbtest":
|
14
|
+
ensure => file,
|
15
|
+
mode => $var ? {
|
16
|
+
nottrue => 644,
|
17
|
+
default => 755
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
$othervar = "complex value"
|
22
|
+
|
23
|
+
file { "/tmp/snippetselectctest":
|
24
|
+
ensure => file,
|
25
|
+
mode => $othervar ? {
|
26
|
+
"complex value" => 755,
|
27
|
+
default => 644
|
28
|
+
}
|
29
|
+
}
|
30
|
+
$anothervar = Yayness
|
31
|
+
|
32
|
+
file { "/tmp/snippetselectdtest":
|
33
|
+
ensure => file,
|
34
|
+
mode => $anothervar ? {
|
35
|
+
Yayness => 755,
|
36
|
+
default => 644
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# $Id$
|
2
|
+
|
3
|
+
file { "/tmp/singleary1":
|
4
|
+
ensure => file
|
5
|
+
}
|
6
|
+
|
7
|
+
file { "/tmp/singleary2":
|
8
|
+
ensure => file
|
9
|
+
}
|
10
|
+
|
11
|
+
file { "/tmp/singleary3":
|
12
|
+
ensure => file,
|
13
|
+
require => [File["/tmp/singleary1"], File["/tmp/singleary2"]]
|
14
|
+
}
|
15
|
+
|
16
|
+
file { "/tmp/singleary4":
|
17
|
+
ensure => file,
|
18
|
+
require => [File["/tmp/singleary1"]]
|
19
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
$value1 = ""
|
2
|
+
$value2 = true
|
3
|
+
$value3 = false
|
4
|
+
$value4 = yay
|
5
|
+
|
6
|
+
$test = "yay"
|
7
|
+
|
8
|
+
$mode1 = $value1 ? {
|
9
|
+
"" => 755
|
10
|
+
}
|
11
|
+
|
12
|
+
$mode2 = $value2 ? {
|
13
|
+
true => 755
|
14
|
+
}
|
15
|
+
|
16
|
+
$mode3 = $value3 ? {
|
17
|
+
default => 755
|
18
|
+
}
|
19
|
+
|
20
|
+
file { "/tmp/singleselector1": ensure => file, mode => $mode1 }
|
21
|
+
file { "/tmp/singleselector2": ensure => file, mode => $mode2 }
|
22
|
+
file { "/tmp/singleselector3": ensure => file, mode => $mode3 }
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# $Id$
|
2
|
+
|
3
|
+
tag testing
|
4
|
+
tag(funtest)
|
5
|
+
|
6
|
+
class tagdefine {
|
7
|
+
$path = tagged(tagdefine) ? {
|
8
|
+
true => "true", false => "false"
|
9
|
+
}
|
10
|
+
|
11
|
+
file { "/tmp/taggeddefine$path": ensure => file }
|
12
|
+
}
|
13
|
+
|
14
|
+
include tagdefine
|
15
|
+
|
16
|
+
$yayness = tagged(yayness) ? {
|
17
|
+
true => "true", false => "false"
|
18
|
+
}
|
19
|
+
|
20
|
+
$funtest = tagged(testing) ? {
|
21
|
+
true => "true", false => "false"
|
22
|
+
}
|
23
|
+
|
24
|
+
$both = tagged(testing, yayness) ? {
|
25
|
+
true => "true", false => "false"
|
26
|
+
}
|
27
|
+
|
28
|
+
$bothtrue = tagged(testing, testing) ? {
|
29
|
+
true => "true", false => "false"
|
30
|
+
}
|
31
|
+
|
32
|
+
file { "/tmp/taggedyayness$yayness": ensure => file }
|
33
|
+
file { "/tmp/taggedtesting$funtest": ensure => file }
|
34
|
+
file { "/tmp/taggedboth$both": ensure => file }
|
35
|
+
file { "/tmp/taggedbothtrue$bothtrue": ensure => file }
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class one {
|
2
|
+
@file { "/tmp/virtualtest1": content => "one" }
|
3
|
+
@file { "/tmp/virtualtest2": content => "two" }
|
4
|
+
@file { "/tmp/virtualtest3": content => "three" }
|
5
|
+
@file { "/tmp/virtualtest4": content => "four" }
|
6
|
+
}
|
7
|
+
|
8
|
+
class two {
|
9
|
+
File <| content == "one" |>
|
10
|
+
realize File["/tmp/virtualtest2"]
|
11
|
+
realize(File["/tmp/virtualtest3"], File["/tmp/virtualtest4"])
|
12
|
+
}
|
13
|
+
|
14
|
+
include one, two
|
@@ -0,0 +1,13 @@
|
|
1
|
+
127.0.0.1 localhost
|
2
|
+
192.168.0.3 culain.madstop.com culain
|
3
|
+
192.168.0.100 yaytest
|
4
|
+
|
5
|
+
# The following lines are desirable for IPv6 capable hosts
|
6
|
+
# (added automatically by netbase upgrade)
|
7
|
+
|
8
|
+
::1 ip6-localhost ip6-loopback
|
9
|
+
fe00::0 ip6-localnet
|
10
|
+
ff00::0 ip6-mcastprefix
|
11
|
+
ff02::1 ip6-allnodes
|
12
|
+
ff02::2 ip6-allrouters
|
13
|
+
ff02::3 ip6-allhosts
|
@@ -0,0 +1,183 @@
|
|
1
|
+
# This is the aliases file - it says who gets mail for whom.
|
2
|
+
# It was originally generated by `eximconfig', part of the exim package
|
3
|
+
# distributed with Debian, but it may edited by the mail system administrator.
|
4
|
+
# This file originally generated by eximconfig at Tue Jul 12345 12345:12345:12345 CDT 12345
|
5
|
+
# See exim info section for details of the things that can be configured here.
|
6
|
+
|
7
|
+
# Local aliases
|
8
|
+
eight-phone: 12345@domain.com
|
9
|
+
eight-pager: eight-phone
|
10
|
+
eight-sms: eight-phone
|
11
|
+
cindy-phone: 12345@domain.com
|
12
|
+
cindy-pager: cindy-phone
|
13
|
+
cindy-sms: cindy-phone
|
14
|
+
|
15
|
+
ben-phone: 12345@txt.att.net
|
16
|
+
ben: eight
|
17
|
+
ajax: eight
|
18
|
+
|
19
|
+
teyo: teyo@brainfinger.org
|
20
|
+
|
21
|
+
#----------------#
|
22
|
+
# Family aliases #
|
23
|
+
#----------------#
|
24
|
+
|
25
|
+
smithes: eight,six,two,seven,isaiah,kristen,cindy,three
|
26
|
+
smith: smithes
|
27
|
+
#morris: morrisbpaddlin@hotmail.com
|
28
|
+
#six: grendelwench@hotmail.com
|
29
|
+
two: twosmith@thirddomain.com
|
30
|
+
seven: sevensmith@thirddomain.com
|
31
|
+
isaiah: ismith@thirddomain.com
|
32
|
+
kristen: kristenwells@thirddomain.com
|
33
|
+
one-phone: 12345@otherdomain.com
|
34
|
+
one-pager: one-phone
|
35
|
+
seven-phone: 12345@otherdomain.com
|
36
|
+
seven-pager: seven-phone
|
37
|
+
seven-sms: seven-phone
|
38
|
+
ike-phone: 12345@otherdomain.com
|
39
|
+
ike-page: ike-phone
|
40
|
+
ike-sms: ike-phone
|
41
|
+
six-phone: 12345@otherdomain.com
|
42
|
+
six-page: six-phone
|
43
|
+
six-sms: six-phone
|
44
|
+
three: tferguson@mmc.edu
|
45
|
+
three-phone: 12345@otherdomain.com
|
46
|
+
three-page: three-phone
|
47
|
+
three-sms: three-phone
|
48
|
+
four-phone: 12345@otherdomain.com
|
49
|
+
four-page: four-phone
|
50
|
+
four-sms: four-phone
|
51
|
+
two-phone: 12345@otherdomain.com
|
52
|
+
two-page: two-phone
|
53
|
+
two-sms: two-phone
|
54
|
+
five-phone: 12345@otherdomain.com
|
55
|
+
five-page: five-phone
|
56
|
+
five-sms: five-phone
|
57
|
+
|
58
|
+
#----------------#
|
59
|
+
# work aliases #
|
60
|
+
#----------------#
|
61
|
+
consulting: eight
|
62
|
+
svn: eight
|
63
|
+
info: eight
|
64
|
+
blog: eight
|
65
|
+
paypal: eight
|
66
|
+
trac: puppet-dev
|
67
|
+
dev: eight
|
68
|
+
sales: eight
|
69
|
+
training: eight
|
70
|
+
support: eight
|
71
|
+
faq: eight
|
72
|
+
puppet-docs: eight,nine@domain.com,ten@domain.com,eleven@other.com
|
73
|
+
docs: puppet-docs
|
74
|
+
jobs: eight
|
75
|
+
|
76
|
+
# System stuff
|
77
|
+
postmaster: eight
|
78
|
+
root: eight
|
79
|
+
|
80
|
+
daemon: root
|
81
|
+
bin: root
|
82
|
+
sys: root
|
83
|
+
sync: root
|
84
|
+
games: root
|
85
|
+
man: root
|
86
|
+
lp: root
|
87
|
+
mail: root
|
88
|
+
news: root
|
89
|
+
uucp: root
|
90
|
+
proxy: root
|
91
|
+
postgres: root
|
92
|
+
www-data: root
|
93
|
+
backup: root
|
94
|
+
operator: root
|
95
|
+
list: root
|
96
|
+
irc: root
|
97
|
+
gnats: root
|
98
|
+
nobody: root
|
99
|
+
|
100
|
+
filemaker: eight
|
101
|
+
|
102
|
+
hostmaster: root
|
103
|
+
usenet: root
|
104
|
+
webmaster: root
|
105
|
+
www: root
|
106
|
+
ftp: root
|
107
|
+
abuse: root
|
108
|
+
noc: root
|
109
|
+
security: root
|
110
|
+
|
111
|
+
mailer-daemon: postmaster
|
112
|
+
|
113
|
+
tap: one@two.com,two@three.com,three@four.com,four@five.com,five@six.com
|
114
|
+
|
115
|
+
mailman: "|/var/lib/mailman/mail/mailman post mailman"
|
116
|
+
mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
|
117
|
+
mailman-bounces: "|/var/lib/mailman/mail/mailman bounces mailman"
|
118
|
+
mailman-confirm: "|/var/lib/mailman/mail/mailman confirm mailman"
|
119
|
+
mailman-join: "|/var/lib/mailman/mail/mailman join mailman"
|
120
|
+
mailman-leave: "|/var/lib/mailman/mail/mailman leave mailman"
|
121
|
+
mailman-owner: "|/var/lib/mailman/mail/mailman owner mailman"
|
122
|
+
mailman-request: "|/var/lib/mailman/mail/mailman request mailman"
|
123
|
+
mailman-subscribe: "|/var/lib/mailman/mail/mailman subscribe mailman"
|
124
|
+
mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"
|
125
|
+
|
126
|
+
puppet-dev: "|/var/lib/mailman/mail/mailman post puppet-dev"
|
127
|
+
puppet-dev-admin: "|/var/lib/mailman/mail/mailman admin puppet-dev"
|
128
|
+
puppet-dev-bounces: "|/var/lib/mailman/mail/mailman bounces puppet-dev"
|
129
|
+
puppet-dev-confirm: "|/var/lib/mailman/mail/mailman confirm puppet-dev"
|
130
|
+
puppet-dev-join: "|/var/lib/mailman/mail/mailman join puppet-dev"
|
131
|
+
puppet-dev-leave: "|/var/lib/mailman/mail/mailman leave puppet-dev"
|
132
|
+
puppet-dev-owner: "|/var/lib/mailman/mail/mailman owner puppet-dev"
|
133
|
+
puppet-dev-request: "|/var/lib/mailman/mail/mailman request puppet-dev"
|
134
|
+
puppet-dev-subscribe: "|/var/lib/mailman/mail/mailman subscribe puppet-dev"
|
135
|
+
puppet-dev-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe puppet-dev"
|
136
|
+
|
137
|
+
## puppet-commit mailing list
|
138
|
+
puppet-commit: "|/var/lib/mailman/mail/mailman post puppet-commit"
|
139
|
+
puppet-commit-admin: "|/var/lib/mailman/mail/mailman admin puppet-commit"
|
140
|
+
puppet-commit-bounces: "|/var/lib/mailman/mail/mailman bounces puppet-commit"
|
141
|
+
puppet-commit-confirm: "|/var/lib/mailman/mail/mailman confirm puppet-commit"
|
142
|
+
puppet-commit-join: "|/var/lib/mailman/mail/mailman join puppet-commit"
|
143
|
+
puppet-commit-leave: "|/var/lib/mailman/mail/mailman leave puppet-commit"
|
144
|
+
puppet-commit-owner: "|/var/lib/mailman/mail/mailman owner puppet-commit"
|
145
|
+
puppet-commit-request: "|/var/lib/mailman/mail/mailman request puppet-commit"
|
146
|
+
puppet-commit-subscribe: "|/var/lib/mailman/mail/mailman subscribe puppet-commit"
|
147
|
+
puppet-commit-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe puppet-commit"
|
148
|
+
|
149
|
+
## bnageek mailing list
|
150
|
+
bnageek: "|/var/lib/mailman/mail/mailman post bnageek"
|
151
|
+
bnageek-admin: "|/var/lib/mailman/mail/mailman admin bnageek"
|
152
|
+
bnageek-bounces: "|/var/lib/mailman/mail/mailman bounces bnageek"
|
153
|
+
bnageek-confirm: "|/var/lib/mailman/mail/mailman confirm bnageek"
|
154
|
+
bnageek-join: "|/var/lib/mailman/mail/mailman join bnageek"
|
155
|
+
bnageek-leave: "|/var/lib/mailman/mail/mailman leave bnageek"
|
156
|
+
bnageek-owner: "|/var/lib/mailman/mail/mailman owner bnageek"
|
157
|
+
bnageek-request: "|/var/lib/mailman/mail/mailman request bnageek"
|
158
|
+
bnageek-subscribe: "|/var/lib/mailman/mail/mailman subscribe bnageek"
|
159
|
+
bnageek-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe bnageek"
|
160
|
+
|
161
|
+
## puppet-users mailing list
|
162
|
+
puppet-users: "|/var/lib/mailman/mail/mailman post puppet-users"
|
163
|
+
puppet-users-admin: "|/var/lib/mailman/mail/mailman admin puppet-users"
|
164
|
+
puppet-users-bounces: "|/var/lib/mailman/mail/mailman bounces puppet-users"
|
165
|
+
puppet-users-confirm: "|/var/lib/mailman/mail/mailman confirm puppet-users"
|
166
|
+
puppet-users-join: "|/var/lib/mailman/mail/mailman join puppet-users"
|
167
|
+
puppet-users-leave: "|/var/lib/mailman/mail/mailman leave puppet-users"
|
168
|
+
puppet-users-owner: "|/var/lib/mailman/mail/mailman owner puppet-users"
|
169
|
+
puppet-users-request: "|/var/lib/mailman/mail/mailman request puppet-users"
|
170
|
+
puppet-users-subscribe: "|/var/lib/mailman/mail/mailman subscribe puppet-users"
|
171
|
+
puppet-users-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe puppet-users"
|
172
|
+
|
173
|
+
## puppet-bugs mailing list
|
174
|
+
puppet-bugs: "|/var/lib/mailman/mail/mailman post puppet-bugs"
|
175
|
+
puppet-bugs-admin: "|/var/lib/mailman/mail/mailman admin puppet-bugs"
|
176
|
+
puppet-bugs-bounces: "|/var/lib/mailman/mail/mailman bounces puppet-bugs"
|
177
|
+
puppet-bugs-confirm: "|/var/lib/mailman/mail/mailman confirm puppet-bugs"
|
178
|
+
puppet-bugs-join: "|/var/lib/mailman/mail/mailman join puppet-bugs"
|
179
|
+
puppet-bugs-leave: "|/var/lib/mailman/mail/mailman leave puppet-bugs"
|
180
|
+
puppet-bugs-owner: "|/var/lib/mailman/mail/mailman owner puppet-bugs"
|
181
|
+
puppet-bugs-request: "|/var/lib/mailman/mail/mailman request puppet-bugs"
|
182
|
+
puppet-bugs-subscribe: "|/var/lib/mailman/mail/mailman subscribe puppet-bugs"
|
183
|
+
puppet-bugs-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe puppet-bugs"
|