Re: [Puppet Users] Help with Bolt Puppet DSL example
Dear Martin, It sure did. Thanks a lot =) Hugs, Sandra =) On Thursday, 18 November 2021 at 12:59:19 UTC+1 Martin Alfke wrote: > Hi Sandra, > > Bolt has two options: tasks and plans. > Tasks consist of a Script (Shell, Powershell, Python, Ruby) and a .json > file. > Plans are written in Puppet DSL. > > Main difference: > Tasks run workflow actions like stop a service, do something and restart > the service. > Plans are used to control tasks over a number of nodes. > > In you case I would head to a task. > When using pdf, you can run pdf new task within a module. > > You can then use bolt to execute a task: > > bolt task run —nodes > > The task istself: > #modules/demo/tasks/test.sh > #!/bin/bash > touch > sudo touch > > Hth, > Martin > > On 17. Nov 2021, at 21:42, Sandra Schlichting > wrote: > > > Dear all =) > > I would like to learn Bolt with Puppet DSL, so I was wondering if someone > could get me started with an example that: > > * logs into a Linux host > * touch new_file_as_user > * sudo > * touch file_as_root > > That would be very much appreciated =) > > Hugs, > Sandra =) > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/4b32d706-6be7-4adf-8703-e7f5174720a7n%40googlegroups.com > > <https://groups.google.com/d/msgid/puppet-users/4b32d706-6be7-4adf-8703-e7f5174720a7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ba8b7307-3d73-44d9-bd09-60c9b65c15f8n%40googlegroups.com.
[Puppet Users] Help with Bolt Puppet DSL example
Dear all =) I would like to learn Bolt with Puppet DSL, so I was wondering if someone could get me started with an example that: * logs into a Linux host * touch new_file_as_user * sudo * touch file_as_root That would be very much appreciated =) Hugs, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4b32d706-6be7-4adf-8703-e7f5174720a7n%40googlegroups.com.
Re: [Puppet Users] Does Puppet still execute in random order?
Thanks a lot Josh =) Googling "manifest ordering" gives this excellent book on just this https://subscription.packtpub.com/book/networking_and_servers/9781787284715/1/ch01lvl1sec14/controlling-the-order-of-execution . Hugs, Sandra =) On Tuesday, 22 June 2021 at 03:22:17 UTC+2 Josh Cooper wrote: > On Mon, Jun 21, 2021 at 4:37 PM Sandra Schlichting > wrote: > >> Dear all =) >> >> It have been +5 years since I used Puppet at my previous job, and back >> then I recall Puppet executed the tasks in random order, and I had to glue >> all the tasks together to get them to be executed sequential. >> >> I recall something about Puppet have been completely rewritten since, so >> I was wondering if this random order behaviour is still present? >> >> Hugs, >> Sandra =) >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/12a3c096-2592-4ee2-a9bf-4fb4661785d7n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/puppet-users/12a3c096-2592-4ee2-a9bf-4fb4661785d7n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > The magic reordering business was deprecated and removed, and replaced > with "manifest ordering". There's more details in > https://puppet.com/docs/puppet/7/lang_relationships.html and > https://puppet.com/blog/introducing-manifest-ordered-resources/ > > Josh > > -- > Josh Cooper > Software Engineer > jo...@puppet.com > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c3e979e7-3249-4255-930c-020a86325486n%40googlegroups.com.
[Puppet Users] Does Puppet still execute in random order?
Dear all =) It have been +5 years since I used Puppet at my previous job, and back then I recall Puppet executed the tasks in random order, and I had to glue all the tasks together to get them to be executed sequential. I recall something about Puppet have been completely rewritten since, so I was wondering if this random order behaviour is still present? Hugs, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/12a3c096-2592-4ee2-a9bf-4fb4661785d7n%40googlegroups.com.
Re: [Puppet Users] Possible for each user to have their own testing environment?
> The environment name is just a directory within the > /etc/puppet/environments directory, nothing more. If you use a git branch > named 'master', you will just have to check it out into an environment > directory with a different name, such as 'production', 'main', etc... It > doesn't matter what you want to call the environment directory, as long as > it's not one of those 4 you mentioned above, and git does not care what the > name of the directory the files are checked out into. Puppet is not doing > any sort of checking with git to see what the branch name is. > > Than I am more relaxed. =) Since PuppetLabs mentioned git, I was under the impression that I had to rename the native "master" branch in git, which it creates as default. This is what my plan is, which I hope is not a problem? cd /etc/puppet git init git add fileserver manifests/classes modules nodes git commit -m "init commit from puppet2" git branch # outputs * master and then puppet.conf would become [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl [agent] classfile = $vardir/classes.txt localconfig = $vardir/localconfig [sandra] modulepath = $confdir/environments/sandra/modules manifestdir = $confdir/environments/sandra/manifests manifest = $confdir/environments/sandra/site.pp where site.pp contains filebucket {'main': server => "puppet.example.com", path => false, } File { backup => main } Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin" } import 'classes/*.pp' import '../nodes/*.pp' To use it, I would cd /etc/puppet/environments git clone /etc/puppet sandra cd sandra This would not conflict, right? I don't have a [master] block in puppet.conf. Is that needed in this case? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Possible for each user to have their own testing environment?
> > How can a git branch name (master) conflict with content in the > > puppet.conf file? > > When using puppet agent --environment=master, the [master] section > containing configuration directives (e.g. database connection for > puppetdb) will be interpreted by the puppet agent, with less than > stellar results. > > That makes a lot of sense, why "master" is not allowed as an environment name. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Possible for each user to have their own testing environment?
On Monday, 19 August 2013 15:48:38 UTC+2, myeazel wrote: > > Git branching and environments is exactly what we did to solve this > problem. We are actually using gitolite which allows us to lock down who > can push to certain branches. So anyone can create their own branch, push > that up (which creates the proper directories through git hooks) and test > with --environment [branch_name] and then when they know it works great, > request a merge into our permanent environments like production and > testing. Once the new code is merged into its final home, the temporary > branch is deleted. > > The hard part is the git hooks. We actually have a script that emulates > the "Github" WebHook URL functionality and a hook that "catches" that POST > and does all the magic. I included the web pages that helped me get our > setup working how we wanted it to. > > https://github.com/metajack/notify-webhook > https://puppetlabs.com/blog/git-workflow-and-puppet-environments/ > > Thanks a really cool script! Thanks =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Possible for each user to have their own testing environment?
Dear Brian and John, Thanks a lot for your replies. I was under the impression that site.pp had to be in the environment, which I now see it doesn't have to. =) What I don't quite understand is though is the following: There are four forbidden environment names: > >- main > > >- master > > >- agent > > >- user > > These names are already taken by the primary config > blocks<http://docs.puppetlabs.com/guides/configuring.html#config-blocks>. > If you are using Git branches for your environment names, this may mean > you’ll need to rename the master branch to something like production or > stable. How can a git branch name (master) conflict with content in the puppet.conf file? Hugs, Sandra =) On Friday, 16 August 2013 01:14:44 UTC+2, John Warburton wrote: > > On 16 August 2013 00:14, Sandra Schlichting > > wrote: > >> Hello all =) >> >> What I would like is a way so multiple people can make changes to all >> files in /etc/puppet/, but only after they have tested their changes then >> they "git push" so /etc/puppet is updated. The git repo is in /etc/puppet. >> When I read about environments [1] I get the impression that is only for >> module development, is that correct? >> >> Ideally what I would like is each user to have their private environment >> where they can "git pull" to. E.g. >> > > >> Can something like this be done? And if so, what would my >> /etc/puppet/puppet.conf look like? >> > > This is exactly what we do - each admin has their own environment. We use > SVN, so substitute where required, but essentially we force a particular > directory structure for every admin and reflect that in the > puppetmaster.conf of our lab server. NB the SVN work spaces must be on the > same server as the lab puppet server for this to work > > # Replicate this, and change "username" as appropriate (one per line) > #[Lusername] > #modulepath = /u1/username/svn-workspace/puppet/Lusername/modules > #manifest = > /u1/username/svn-workspace/puppet/Lusername/manifests/site.pp > #manifestdir = /u1/username/svn-workspace/puppet/Lusername/manifests > > Because we have different yum/pkg repos per environment, that capital L > for the environment allows us to do some generic regexp matching to > override to a single "lab" repo and not one per admin > > All changes are a feature > branch<http://nvie.com/posts/a-successful-git-branching-model/>, > and we wrap the creation of a JIRA ticket, new feature branch name based on > JIRA ticket number (UX-) and sym link > /u1/username/svn-workspace/puppet/Lusername to > /u1/username/svn-workspace/puppet/branches/UX- in a script > > We then set the environment of whatever development VM/server we need to > develop/test the code - including full rebuilds and "it just works". We > have another script which checks for a valid peer review (reviewboard) then > merges the changes back into develop/trunk, and updates the JIRA ticket > > The only gotcha is if you have multiple feature branches at any time and > managing the sym link > > John > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Possible for each user to have their own testing environment?
Hello all =) What I would like is a way so multiple people can make changes to all files in /etc/puppet/, but only after they have tested their changes then they "git push" so /etc/puppet is updated. The git repo is in /etc/puppet. When I read about environments [1] I get the impression that is only for module development, is that correct? Ideally what I would like is each user to have their private environment where they can "git pull" to. E.g. ssh sandra@puppet cd /home/sandra/puppet git pull # edit files exit ssh root@node puppet agent --environment sandra exit ssh sandra@puppet cd /home/sandra/puppet git push Can something like this be done? And if so, what would my /etc/puppet/puppet.conf look like? Lots of love, Sandra =) [1]: http://docs.puppetlabs.com/guides/environment.html -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Can Puppet alert about dead nodes?
> My solution to this is a script that enumerates the signed keys that the > master server knows about and compares this with which clients have been > seen in the past 24 hours. There's probably also a way to do it with some > of puppet's reporting facilities. My script is appended if it is of any > use. You will need to customise file names and the email address. > > Wow! This is also what I am looking for! Bernd posted a similar solution. I really like the nodes are not asked if they are dead. Now I have two scripts to try =) Thanks Bernd and Chris =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/K-bUbUyXfTUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Can Puppet alert about dead nodes?
> I provided some posts about the health of Puppet agents some time ago. > They might help too. The first one is found here: > http://www.bernd-adamowicz.de/80/monitoring-puppet-part-1/. The others > are linked. > > That is exactly what I was looking for =) Very interesting blog, btw. Lots of useful puppet stuff =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/To2w-D2Zrs0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Can Puppet alert about dead nodes?
> If you have dashboard installed unresponsive nodes can be seen in the > left panel. > > The reason I am interested in this information is that I would like to have the puppet master tricker Nagios to send an alert. =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/V89hfAuB0UYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Can Puppet alert about dead nodes?
Hi all =) Can the puppet master tell me which nodes it haven't heard from in X days? Hugs, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/IJO5Osd3rVoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to disable global definition outside of nodes?
> Afaik, there is no way to make puppet tell you about this. > Puppet is a powerful tool and you got what you asked for :-) > I have now written a script that will check for this, and posted it in "Please review this node check script" =) > What you can do is to write Rspec tests for your catalogs and use that > as a regression test. > > Sounds very interesting! Will have to look at Rspec. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/FfM_2Sb1DwkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Please review this node check script
Hi, The attached script is made for those who have one node per file and want to catch if something have been made global by being outside on the node block. Example: node xxx { ... } package{...} if ... { ... } which should have been node xxx { ... package{...} if ... { ... } } Adjust the path in brackets.sh to your needs and in puppet.conf add prerun_command = /path/to/brackets.sh The script is READ ONLY, and doesn't change any of your files. Please test it on your node pp files, and report any bugs =) Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/iQZoA0somJ0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. #!/usr/bin/perl use strict; #use warnings; #use Data::Dumper; my $b; my $ok; my $node; open (FILE, '<', "$ARGV[0]") || die "Unable to open $ARGV[0]\n"; while (defined (my $line = )) { next if ($line =~ /^#/); # allow comments before the node block if ($line =~ /^node/) { $node = 1; } unless ($node) { print "ERROR: $ARGV[0] is not a valid node file. No node block found.\n"; exit 1; } # remove everything between " " and ' ' # these can contain # which would ruin the comment removal $line =~ s/"[^"]*[^"]*"//g; $line =~ s/'[^']*[^']*'//g; my @chars = split(//, $line); while ($line =~ /(.)/g) { # . is never a newline here if($1 eq "#") {last;} # found a comment. skip rest of the line elsif ($1 eq "{") {$b .= "{"} elsif ($1 eq "}") {$b .= "}"} } # a node file must end with a } and optional spaces and newlines afterwards if ($line =~ /}\s*$/) { $ok = 1; } else { undef $ok unless ($line =~ /^\s*$/); } } close FILE; # remove first { and last } which in a valid case should belong to "node xxx {}" $b = substr($b,1); $b = substr($b,0,length($b)-1); while (length($b) > 2 || $b eq "{}") { $b = join "", (split (/{}/, $b)); } if ($b eq "" && $ok) { exit 0; } elsif ($b eq "" && !$ok) { print "ERROR: $ARGV[0] have atleast one line after the node {} block.\n"; exit 1; } else { print "ERROR: $ARGV[0] have a {} block after the node {} block. Not allowed.\n"; exit 1; } #!/bin/bash for f in /etc/puppet/nodes/*.pp; do /etc/puppet/nodes/brackets.pl $f done
[Puppet Users] How to use prerun_command in puppet.conf ?
Hi, I am using puppet 2.7.19 and if I use puppet.conf as [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl [agent] classfile = $vardir/classes.txt localconfig = $vardir/localconfig prerun_command = /bin/false or add prerun to [main] and do puppet agent --listen --test --noop then it doesn't fail, as I would have expected. I would like to execute a script on the puppetmaster everytime a node tries to connect. Am I doing something wrong? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/5zkorActIrUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Possible to disable global definition outside of nodes?
Hi =) I just made the following mistake, but puppet 2.7.19 didn't complain. node test { ... } package { [ ... ]: ensure => present } So I guess all the packages became global for all nodes? Is it possible to disable this "global definition" option, or get puppet to warn about it? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/fOta6N6Dbx4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet 2.7 v 3.0 in the PuppetLabs yum repo
> I know for that practice, but the problem is that it makes upgrade from > samba to samba3x packages a problem. So I would rather avoid that with > the puppet. And if you know how to add puppetlabs repo to yum, then > you'll know how to choose what version repo to use. Just take a look at > postgresql repositories. > I would very much like how to do that, as it seams to me that "yum versionlock" locks the current installed package from being upgraded, which is not really what we want =) We want that puppet-2.7.* and puppet-server-2.7.* can be upgraded. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/R5rn3iiiobMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Are future versions of facter and hiera 2.7.x backwards compatible?
Hi, I am using puppet 2.7 so I am wondering if the new facter-1.6.13-1 hiera-1.1.0 and future versions are compatible with puppet 2.7 ? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/yeYeMvKfbPgJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet 2.7 v 3.0 in the PuppetLabs yum repo
Hi Chad * Take a look at the yum versionlock plugin. My life has been much > simpler since I deployed it. For a while I was "exclude"ing puppet > and friends in yum.conf, but that was a real pain. The versionlock > plugin "pins" a package at the version you want, and then you can > update when ready. > When I do that I get # yum versionlock add puppet-server-2.7\* puppet-2.7\* # yum versionlock list Loaded plugins: fastestmirror, security, versionlock 0:puppet-server-2.7.19-1.el6.* 0:puppet-2.7.19-1.el6.* versionlock list done which I suppose will lock it to 2.7.19 and never to 2.7.20. Is it possible to lock it to 2.7.x ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/MLdbBDAqqgYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How to change node hostname?
Dear readers, I have changed the hostname of a node, and so the question is: How do I delete the old puppet certificate on the node and master? Hugs, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/OLHRwbyab6MJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Possible to install own deb packages on nodes?
Dear all =) I have a few deb packages that I would like to install on some Ubuntu nodes. This guy explains how to create your own repository, which I think is a little overkill for me. http://mancoosi.org/~abate/configuring-local-apt-repository-puppet Is it possible to have puppet install the packages from "source => puppet:/// ..." or similar? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/zuM6_uhmKjYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Warning: Phish?] Re: [Puppet Users] Can puppet add repositories to nodes?
Hi Joe and Matt, Thanks a lot for both solutions!! I am actually going to use both as for normal hosts Joe's solution is good, and Matt's for LTSP clients =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/kagYSfTf51IJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Can puppet add repositories to nodes?
Hi all, I would like to add two repositories to Ubuntu nodes apt-add-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" deb http://dl.google.com/linux/chrome/deb/ stable main and then import the key apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192 Can this be done in a clever way with puppet? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/lkxkivCib8YJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Installing packages that require user input (e.g. NIS) ?
> > figure out if nis packages support having an 'answer' file available to > provide the input for those questions and if so, have puppet put the file > into place prior to installing the packages. > Great. It does. Thanks =) These links were useful http://wiki.debian.org/DebianInstaller/Preseed http://serverfault.com/questions/228266/how-do-i-generate-a-response-file-to-be-used-with-apt-get-or-aptitude apt-get install nis debconf-get-selections | grep nis > nis.seed --edit nis.seed-- debconf-set-selections nis.seed -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/nDjEb_S9KMUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Installing packages that require user input (e.g. NIS) ?
Hi all I would like to install NIS, but how do I handle such a package which prompts for user input, when "apt-get install nis" is done on Ubuntu? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/nPiUgbBGqicJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to set DNS on Ubuntu 12.04 clients?
> > Not necessarily. I have not tried this myself yet, but you can put > static DNS settings in /etc/resolvconf/resolv.conf.d/{head,base,tail}. > Afterwards call "service resolvconf restart". See here for details: > http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ > Just tried it, and just treating /etc/resolvconf/resolv.conf.d/base as your /etc/resolv.conf works. > You should be able to adapt the resolv_conf module accordingly, or write > your own. > That should be interesting. I on it =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/qbZNclGp6bIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to set DNS on Ubuntu 12.04 clients?
> > Surely if you're statically configuring DNS on a server, you don't want > a dynamic DNS configuration daemon running on the same server. > > Presumably something like: > > package { 'resolvconf': > ensure => purged > } > > And then get on with your life? > That is a very attractive solution fore sure! Should I just ignore that it depends on the "ubuntu-minimal" package? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/aNi1lLxBg9EJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How to set DNS on Ubuntu 12.04 clients?
Hi all =) Does anyone know of a module that can configure the DNS on Ubuntu 12.04 clients? This module works for CentOS and Ubuntu < 12.04 http://forge.puppetlabs.com/saz/resolv_conf but in Ubuntu 12.04 you can't just overwrite the /etc/resolv.conf anymore. DNS have to be set in /etc/network/interfaces Does anyone know how to do this in puppet? Hugs, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/2d9sQYbru9sJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to copy ssh key from node A to node B?
Hi Chad > Sorry, Sandra, I started to add a comment at the bottom with usage, > but apparently I never saved it. Although the script can do user keys > as well, this just addresses host keys. I have a cron script that > generates the known hosts file as well: > [snip] Wow. Easy and simple solution to a complex problem. Thanks for your scripts =) Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/hX5CGhG4Y4gJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to copy ssh key from node A to node B?
> > Err, no. In a well-maintained environment, it should never be necessary > to manually approve a host key. > I would prefer that too. > Usually you should always distribute all host keys to all clients with > one of the common @@ssh_key Export/Collect patterns. That is totally > unrelated to authentication though. > Can it be done without introducing a database? I would really like not introduce a database to my puppet master. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/EPQL0gh8CPUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to copy ssh key from node A to node B?
> > There's an sshauth module at > > http://projects.reductivelabs.com/projects/puppet/wiki/Module_Ssh_Auth_Patterns > > that I've used successfully on a 2.7.x puppetmaster. It handles > public & private key generation and exchange, but doesn't handle > known_hosts. It doesn't require a DB backend though; the keys are > stored on the puppetmaster and just pushed out to nodes that need > them. > That sounds exactly what I need =) About known_hosts. So that just means I have to login the first time myself, and answer "yes" to the fingerprint? > There are a number of ssh related modules on the forge > (http://forge.puppetlabs.com/modules?q=ssh) but I've not used any of > them so can't comment on their usefulness or robustness. > This one also looks good https://github.com/ghoneycutt/puppet-ssh Have you tried that one? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/iwbrzIeBIEsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to copy ssh key from node A to node B?
Hi Chad Here is the script we use to do the same. I am not proud of all the > locking stuff. Not sure if it is necessary or not, but it works. > Just set $hostkeydir and $userkeydir for your environment, and it will > manage ssh host keys. It will also do user keys, but I didn't put > examples of that in the gist. > > git://gist.github.com/3534504.git It looks very impressive, but I can't really figure out how to use it. ~/ssh# ./sshkeys.pl --dsa --host=ttt.e.com --user=rrr --genknownhosts Unable to open lock file at ./sshkeys.pl line 239. ~/ssh# ./sshkeys.pl --dsa --host=ttt.e.com --user=rrr --genknownhosts --addauth Unknown option: addauth I have set our $hostkeydir = '/root/ssh/hostkeys'; our $userkeydir = '/root/ssh/userkeys'; our $known_hosts_copy = '/root/ssh/gen/ssh_known_hosts'; If you could share the puppet module you use, it would be very helpful =) Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/vR7zhEKP9FoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to copy ssh key from node A to node B?
Hi Eric > On the run so no time to write up a quick example - but take a look at > exported resources. There's a design patterns page -- > > http://docs.puppetlabs.com/guides/exported_resources.html > > These are designed to do what you're looking for. > Wow. That looks very complicated. =) I suppose it requires a database backend? Does there exist a SSH key management module, where the puppet master generates the private and public keys and pushes them to the nodes? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/pKPGEE_wMtEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Possible to copy ssh key from node A to node B?
Hi, I would like to write a class that can copy /root/.ssh/id_dsa from node A to node B. class sshkeycopy { >exec {"ssh-keygen -q -t dsa -f /root/.ssh/id_dsa -P ''": > creates => "/root/.ssh/id_dsa.pub" >} >file {"/root/.ssh/id_dsa": > mode => "644", > owner => root, > group => root, >} >exec {"???": > subscribe => Exec["ssh-keygen -q -t dsa -f /root/.ssh/id_dsa -P ''"], > refreshonly => true >} > } The puppet master can login to node B without passphrase and append a key cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys' So the question is how to copy /root/.ssh/id_dsa.pub from node A to the puppet master and then push it to node B? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/UZoM9krZK74J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: What is wrong with mu class?
Solved. directories="<%= backupDirList.join(" ") %>" Of course =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/yJvpD1K7AiQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] What is wrong with mu class?
Hi, If I write the following in a template directories="<% backupDirList.each do |dir| -%><%= dir %> <% end -%>" then it will output directories="/appl /etc /usr/local " Question How do I print the backupDirList array, so it doesn't end with a blank space? Best regards, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/crWCaGLzqAIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: thoughts on puppet 2.7 vs 3.0
Please see this post. https://groups.google.com/forum/#!topic/puppet-users/8AwzWv2-Qeo -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mlKC53-C9e4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: How to purge network-manager (requires reboot) ?
Hi John That is a very interesting solution! I had to look up what "provider" and "refreshonly" did. They seam to be very useful for other situations as well! Thanks =) Hugs, Sandra On Wednesday, 29 August 2012 16:04:32 UTC+2, jcbollinger wrote: > > > > On Wednesday, August 29, 2012 6:48:04 AM UTC-5, Sandra Schlichting wrote: >> >> Hi all =) >> >> I would like to purge the following packages >> >> network-manager >> >> network-manager-gnome >> >> network-manager-pptp >> >> network-manager-pptp-gnome >> >> >> but the problem is, that I suppose a reboot is required for the NIC's no >> longer to be manged by network-manager? >> >> >> How would you work around this? >> >> > Like Krzysztof, I'm not certain that a reboot is required. On the other > hand, Network Manager is a tricky and sometimes pesky little beast, so > maybe a reboot really is required. I can't advise you on avoiding a > reboot, but if you really do need one, then you can probably make Puppet > schedule one using something along these lines: > > exec { 'reboot-soon': > command => '/usr/bin/nohup /sbin/shutdown -r +5 &', > provider => 'sh', > subscribe => Package['network-manager'], > refreshonly => true, > } > > That will reboot the system whenever Puppet changes the 'network-manager' > package (which must already have been declared elsewhere). The five-minute > delay designated by the "+5" argument serves two purposes: > >1. To allow the Puppet run to complete before the reboot (see also >below) >2. To give an admin who happens to be logged in a chance to cancel the >restart > > With respect to the delay time, there is an unavoidable race condition > here, because you can't really predict how much longer Puppet will take to > finish up, especially if the system is heavily loaded. You can largely > mitigate that, however, by ensuring that Exec['reboot-soon'] is applied > after all other resources. Although I'm not a great fan of run stages, > this looks like a good use case for them. > > > John > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/sd-y4s4qZ5MJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: How to purge network-manager (requires reboot) ?
Hi Krzysztof I am not sure why would it require a restart, hm... I am used to making > sure that the service is stopped, packaged purged and then you only need to > make sure that static IP configuration is in place. Sometimes you need to > get rid of the udev rules file, but not often. > Great. Then that problem is solved. Thanks =) Hugs, Sandra =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/L1MZfP_loJoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How to purge network-manager (requires reboot) ?
Hi all =) I would like to purge the following packages network-manager network-manager-gnome network-manager-pptp network-manager-pptp-gnome but the problem is, that I suppose a reboot is required for the NIC's no longer to be manged by network-manager? How would you work around this? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZrmngeNkZCcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Why this "Could not evaluate" error?
Please replace "testip" with "mttj-linuxterm1-puppet" =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/kljEiHtlKgIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Why this "Could not evaluate" error?
Dear readers, When I do this node testip { package {'isc-dhcp-server': ensure => purged, } service {'isc-dhcp-server': ensure => stopped, enable => false, pattern => 'dhcpd' } } I get this error Error: /Stage[main]//Node[mttj-linuxterm1-puppet]/Service[isc-dhcp-server]: Could not evaluate: Execution of '/sbin/initctl --version' returned 1: initctl: invalid command: --version Try `initctl --help' for more information. The puppetmaster is CentOS6 with puppet 3rc3 and the node is UbuntuServer 12.04 with puppet 3rc3. I have to use rc3, as rc4 doesn't work. http://projects.puppetlabs.com/issues/16137 What am I doing wrong? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/79_trpWHWM0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available
> > I just published the saved query that lists these tickets, for a little > nicer URL: > > https://projects.puppetlabs.com/projects/puppet/issues?query_id=263 > > That is a very interesting link. Do you know what the estimated time frame is for 3.0 final? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/3EnxEguy00QJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How can MCollective replace "puppet kick"?
> > http://projects.puppetlabs.com/projects/mcollective gives a bit more > information on mcollective itself. You don't actually push configs to nodes > with it; you have a client which "tells" all machines that matches a fact > to trigger a puppet run. The puppetd agent plugin is required for this to > work. > Thanks for clearing that out =) It definitely sounds useful for other things as well, so I will install it once I have puppet 3 up and running =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/0Jd63QV4FsoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How can MCollective replace "puppet kick"?
> > The mcollective agent is written in Ruby, but it's really tiny. You can > use the mco controller plugin to view resource utilization over time, and > it's generally infinitesimal. > Great. Thanks =) MCollective sounds very useful! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/p5NoVALxeaQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How can MCollective replace "puppet kick"?
> > MCollective is a service that runs on every node. It constantly polls a > message queue server for real-time messages and sometimes responds to them > by performing actions. > > You use a command-line client app to send messages, and you can set > filters on each message so only certain nodes or groups of nodes will > respond to them. Every node that matches a message will react > simultaneously when the message goes out. > > Each node has a set of actions it can run, provided by plugins. The > "puppetd" plugin lets you control puppet agent, but it's better than puppet > kick: It can trigger runs even if puppet agent usually runs via cron > instead of as a service, it can enable and disable puppet runs, and it can > fetch last run summaries. MCollective also lets you be smarter about > triggering runs because it doesn't limit you to hostnames; you can filter > by puppet class, facts, etc. > > Does that help? > Absolutely =) Wow! That is impressive. I have seen the puppet agent taking ~100MB of ram. Is MCollective also written in Ruby, and therefore take a lot of ram? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/VK67c2UfgG4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How can MCollective replace "puppet kick"?
> > > How can MCollective replace "puppet kick"? > > > http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/AgentPuppetd > I don't know what MCollective is, and that link doesn't say anything that will explain it or how I can push configs to nodes =( -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/0oZQHLEVsXgJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How can MCollective replace "puppet kick"?
Dear readers, I was shocked to see that "puppet kick" will be deprecated in 3.0.0 https://projects.puppetlabs.com/issues/15735 How can MCollective replace "puppet kick"? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/HQEcVmzv6AMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available
Does there exist a tracker bug of blocking bugs for final release? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/d0xADxbjGzUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to set default values for downloaded modules?
> > using something like 'myconfig::ntp' (or any different name, > 'ntp_local', etc.) would work fine. This would look like > > class myconfig::ntp { > class { 'ntp': > server_list => [ 'a.example.com', 'b.example.com' ] > } > } > > note testsrv { > include myconfig::ntp > } > Awesome! Thanks a lot =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/S60LHDSDzd0J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to set default values for downloaded modules?
Hi Ryan, [snip] This is equivalent to writing include ntp but without just accepting > the default behavior and data. > Yes, the following works node testsrv { class { 'ntp': server_list => [ 'server1', 'server2', 'etc' ], } } but I would really like to have this instead node testsrv { include ntp } or node testsrv { include myconfig::ntp } Is that possible, or are we talking about different things? =) Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/k3SGg0Q4KtQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How to set default values for downloaded modules?
Dear readers, I would like to use the saz-ntp module from https://github.com/saz/puppet-ntp When installed the class is called "ntp". Ideally would I like each node to look like node testsrv { include ntp } Problem I don't want to modify the downloaded module, but I would like to be able to specify my own ntp servers class { 'ntp': server_list => [ 'yourLocalServer1', 'yourLocalServer2', ] } Question Is it possible to override the ntp class name, so I can create an ntp class with contains my ntp server names? Or is it possible to create an myconfig::ntp so the node would just become?: node testsrv { include myconfig::ntp } Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/v9yh3GsPKUAJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to syntax debug in puppet 3?
> > I first use vim-puppet (syntax highlighting for puppet manifests in > vim while creating my manifest) To create my manifests > Btw. How do you install that? I have tried mkdir .vim cd .vim git clone https://github.com/rodjek/vim-puppet.git cd echo "set runtimepath+=$HOME/.vim/vim-puppet" > .vimrc -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/kajkXlfJkrMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Chart of the most common Ruby I should know for puppet 3?
Hi James The Puppet language reference: > http://docs.puppetlabs.com/puppet/2.7/reference/ Just what I was looking for =) Thanks. Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/vjJsDtdLnmwJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to syntax debug in puppet 3?
Dear Juan - puppet parser validate file.pp (Validate the syntax of one or more > Puppet manifests). > > - puppet-lint file.pp (Check that your Puppet manifest conform to the > style guide) this one must installed using gems package manager: gem > install puppet-lint > That's exactly what I was looking for =) Check all .pp files in a directory > find -name '*.pp' | xargs -n 1 -t puppet parser validate > find -name '*.pp' | xargs -n 1 -t puppet-lint > Didn't knew about the "-n 1" trick instead of making a loop =) Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/psnPqXTYy4AJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to syntax debug in puppet 3?
> > Yes, you may either use it as an Eclipse plugin or as a standalone > program. > [snip] That sounds interesting. How do I do that? =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/8gwNyTeDmgsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] How to syntax debug in puppet 3?
Hi Bernd > Did you ever try Gepetto (https://github.com/cloudsmith/geppetto)? At > least in the coming version (3.0) will support Puppet 3. I really do > recommend Gepetto since I’ve been working with it for more than a year > now and it helped me a lot creating error free code. You should give it a > try. There are also current beta releases available which (as far as I > know) already do support Puppet 3. It’s available as an Eclipse plugin and > as a standalone program. > Ok, so Gepetto is a plugin for Eclipse? I don't suppose it works with either VI or emacs? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/oljsXv0_ayIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Chart of the most common Ruby I should know for puppet 3?
Hi all, Being new to puppet 3 and to Ruby. Does there exist a chart of the Ruby I should know? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/yuEGLZKgC_4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How to syntax debug in puppet 3?
Dear readers, How do I syntax debug the config files on the puppet master before I deploy them? My current problem is that server_list is to be an array, and I don't know if I should write class { 'ntp': server_list => $ntpServerList } or class { 'ntp': server_list = $ntpServerList } How do I debug such a situation on puppet 3? Hugs, Sandra node "client1.example.com" { include common class { 'ntp': server_list => $ntpServerList } } class common { include common::data } class common::data { $ntpServerList = [ 'ntp1.example.com','ntp2.example.com','ntp3.example.com' ] } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/wBOih0BkLQMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to push changes to nodes?
> > > Could you post your whole auth.conf once more? Sure =) I haven't touched anything besides adding your lines towards the bottom auth.conf http://pastebin.com/1Vv0y2tc debug output from node http://pastebin.com/h5cTHxUS namespace.auth http://pastebin.com/6Qut6MSJ puppet.conf http://pastebin.com/54Q1hyVS > And maybe try to put this: > > [puppetrunner] > allow * > > to your client's /etc/puppet/namespace.auth? > I didn't had such file before, but even with, I get the same error. The debug log is with this file in place. > Also check if your DNS is working ok. > Just tested. They work both ways. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/qFd3CRxo38EJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Possible to push changes to nodes?
> > Note that getting puppet kick working is a multi-step process: > > - Gotta change all agents' puppet.conf to have listen = true in either > [main] or [agent]. > - Gotta open port 8139 to incoming connections on every agent node's > firewall. > - Gotta add the following stanza somewhere near the top of each agent > node's auth.conf file: > > path /run > auth yes > allow puppet.example.com > That is very interesting! I have now tried this with Puppet 3.0rc3, and on the node side I get Error: Could not find indirection 'run' so I have filed a bug report http://projects.puppetlabs.com/issues/15717 Do you think it could be a bug, or am I doing something wrong? My setup is explained in the bug report =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/PE7SWVyb4VIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Possible to push changes to nodes?
Dear readers, When I have made a change to a template, class or file, is it then possible to push this change to the node(s), so they get the changes now? I would like to be able to push the change from the master, and not have to login to each node and pull. Is that possible? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/iVAfF5hNUpEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.