diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000276.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2010-November/000276.html | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000276.html b/zarb-ml/mageia-sysadm/2010-November/000276.html new file mode 100644 index 000000000..dc22b67bf --- /dev/null +++ b/zarb-ml/mageia-sysadm/2010-November/000276.html @@ -0,0 +1,148 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] [154] - add puppet module, based on my own setup + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B154%5D%20-%20add%20puppet%20module%2C%20based%20on%20my%20own%20setup&In-Reply-To=%3C20101105182023.24C703FBCF%40valstar.mageia.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000275.html"> + <LINK REL="Next" HREF="000277.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] [154] - add puppet module, based on my own setup</H1> + <B>root at mageia.org</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B154%5D%20-%20add%20puppet%20module%2C%20based%20on%20my%20own%20setup&In-Reply-To=%3C20101105182023.24C703FBCF%40valstar.mageia.org%3E" + TITLE="[Mageia-sysadm] [154] - add puppet module, based on my own setup">root at mageia.org + </A><BR> + <I>Fri Nov 5 19:20:23 CET 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000275.html">[Mageia-sysadm] [153] fix typo :p +</A></li> + <LI>Next message: <A HREF="000277.html">[Mageia-sysadm] [155] - deploy puppet on puppet nodes +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#276">[ date ]</a> + <a href="thread.html#276">[ thread ]</a> + <a href="subject.html#276">[ subject ]</a> + <a href="author.html#276">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Revision: 154 +Author: misc +Date: 2010-11-05 19:20:22 +0100 (Fri, 05 Nov 2010) +Log Message: +----------- +- add puppet module, based on my own setup + +Added Paths: +----------- + puppet/modules/puppet/ + puppet/modules/puppet/manifests/ + puppet/modules/puppet/manifests/init.pp + puppet/modules/puppet/templates/ + puppet/modules/puppet/templates/puppet.conf + +Added: puppet/modules/puppet/manifests/init.pp +=================================================================== +--- puppet/modules/puppet/manifests/init.pp (rev 0) ++++ puppet/modules/puppet/manifests/init.pp 2010-11-05 18:20:22 UTC (rev 154) +@@ -0,0 +1,34 @@ ++ ++class puppet { ++ class client { ++ package { puppet: ++ ensure => installed ++ } ++ ++ service { puppet: ++ ensure => running, ++ subscribe => [ Package[puppet], File["/etc/puppet/puppet.conf"]] ++ } ++ ++ file { "/etc/puppet/puppet.conf": ++ ensure => present, ++ owner => root, ++ group => root, ++ mode => 644, ++ content => template("puppet/puppet.conf"), ++ require => Package[puppet] ++ } ++ } ++ ++ class master inherits client { ++ package { puppet-server: ++ ensure => installed ++ } ++ ++ service { puppetmaster: ++ ensure => running, ++ path => "/etc/init.d/puppetmaster", ++ subscribe => [ Package[puppet-server], File["/etc/puppet/puppet.conf"]] ++ } ++ } ++} + +Added: puppet/modules/puppet/templates/puppet.conf +=================================================================== +--- puppet/modules/puppet/templates/puppet.conf (rev 0) ++++ puppet/modules/puppet/templates/puppet.conf 2010-11-05 18:20:22 UTC (rev 154) +@@ -0,0 +1,27 @@ ++[main] ++ # The Puppet log directory. ++ # The default value is '$vardir/log'. ++ logdir = /var/log/puppet ++ ++ # Where Puppet PID files are kept. ++ # The default value is '$vardir/run'. ++ rundir = /var/run/puppet ++ ++ # Where SSL certificates are kept. ++ # The default value is '$confdir/ssl'. ++ ssldir = $vardir/ssl ++ ++[puppetd] ++ server = puppetmaster.<%= domain %> ++ ++ # The file in which puppetd stores a list of the classes ++ # associated with the retrieved configuratiion. Can be loaded in ++ # the separate ``puppet`` executable using the ``--loadclasses`` ++ # option. ++ # The default value is '$confdir/classes.txt'. ++ classfile = $vardir/classes.txt ++ ++ # Where puppetd caches the local configuration. An ++ # extension indicating the cache format is added automatically. ++ # The default value is '$confdir/localconfig'. ++ localconfig = $vardir/localconfig +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: </pipermail/mageia-sysadm/attachments/20101105/f93ae7f2/attachment.html> +</PRE> + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000275.html">[Mageia-sysadm] [153] fix typo :p +</A></li> + <LI>Next message: <A HREF="000277.html">[Mageia-sysadm] [155] - deploy puppet on puppet nodes +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#276">[ date ]</a> + <a href="thread.html#276">[ thread ]</a> + <a href="subject.html#276">[ subject ]</a> + <a href="author.html#276">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm +mailing list</a><br> +</body></html> |