Hi,
I am using below script to move files from puppet master to puppet agent.
file { /usr/local/temp:
ensure = file,
source = puppet:///files/temp,
mode = 777,
}
If I use this script, file always transferring from master to agent.
But my requirement
On Friday, December 14, 2012 2:52:03 PM UTC-6, Jakov Sosic wrote:
Hi.
I am wondering why can't run stages get set inside the class?
For example:
class foo {
stage main
}
A few answers from different perspectives:
- Because the run stage in which a class should be applied
You have a bunch of options for this if I understand you well. You can
one of the following:
* use augeas with virtual resources
* use the concat module
* use the standard template function with multiple arguments; look at
http://docs.puppetlabs.com/guides/templating.html and scroll down to
On 12/17/2012 03:44 PM, jcbollinger wrote:
* Because the run stage in which a class should be applied isn't a
characteristic of the class itself, but rather of how it is used
Yeah, that makes sense.
Aha! My own biggest objection to run stages, straight out of someone
else's mouth!
Sincerely,
Pengfei Xue
在 2012-12-17,下午8:03,krishna bhaskara rao krishna...@gmail.com 写道:
Hi,
I am using below script to move files from puppet master to puppet agent.
file { /usr/local/temp:
ensure = file,
source = puppet:///files/temp,
mode
On Sunday, December 16, 2012 6:20:10 PM UTC-6, Alex Harvey wrote:
On Tuesday, October 2, 2012 9:28:09 AM UTC+10, Matthaus Litteken wrote:
The puppet 3 gem requires hiera, whose latest version requires json,
which can be either json (a c extension), or json_pure (a ruby
implementation).
I have a home directory being created and not removed as a user is
added/removed. That is desired behavior. However, there are certain
files/dirs in that home directory that I want to always remove if the user
gets marked absent. Unfortunately, the dependencies lead back to the home
directory,
Hi,
I have found when working with user accounts it is very beneficial to
create a defined type that allows you to wrap alot of functionality into
one definition, thus reducing manual work and being more explicit with your
requirements for user data and account configuration when they are
I've been working on getting spec tests on all of my modules and am down to
ones that use hiera and don't have any reasonable defaults. It looks like
there is a project on GH (https://github.com/amfranz/rspec-hiera-puppet) that
is designed to fill this need, but for the life of me I cannot
This works (was added sometime during 2.6 cycle I think).
class foo ($stage = main) {
...
}
include foo
On Dec 14, 2012 9:52 PM, Jakov Sosic jso...@srce.hr wrote:
Hi.
I am wondering why can't run stages get set inside the class?
For example:
class foo {
stage main
}
Because, if I
Hi folks,
I've poked around the language reference, and havent found anything on this
so far. I'd like to be able to force a clean early exit from a module.
WITHOUT encasing the whole body of the module in an if statement.
What I'm looking for:
class somemodule {
#no this isnt going to be a
Trying the firewall module and we're getting a strange error.
/var/lib/puppet/lib/puppet/provider/firewallchain/iptables_chain.rb:34:
warning: already initialized constant Mapping
/var/lib/puppet/lib/puppet/provider/firewallchain/iptables_chain.rb:37:
warning: already initialized constant
I enjoy the puppet mode that comes with emacs by default.
However... people in our organization prefer a slightly different formating
standard.
Would anyone be able to tell me what tweaks I could put in my .emacs file,
to make it so that code gets autoformatted as
class foo {
TAB line here
Philip Brown writes:
I enjoy the puppet mode that comes with emacs by default.
However... people in our organization prefer a slightly different formating
standard.
Would anyone be able to tell me what tweaks I could put in my .emacs file,
to make it so that code gets autoformatted
[snip]
While it is easy to work around this by top-scoping the class, some form of
documented warning might prevent some hairpulling :)
Mostly for posterity, this behaviour is indeed considered buggy (a major
outstanding design issue) and is in fact documented:
*
On Monday, December 17, 2012 1:02:20 PM UTC-8, Steven VanDevender wrote:
Philip Brown writes:
...
So, one to change the tabstops thing, and one to make the closing brace
outdent?
You might look at the customization group for puppet, since that
should list all the variables
Philip Brown writes:
On Monday, December 17, 2012 1:02:20 PM UTC-8, Steven VanDevender wrote:
Philip Brown writes:
...
So, one to change the tabstops thing, and one to make the closing brace
outdent?
You might look at the customization group for puppet, since
Make sure that puppet-dashboard-workers service is running, otherwise all
hosts will appear unresponsive and your pending tasks will keep increasing.
On Thursday, November 8, 2012 5:51:36 AM UTC-8, Karim wrote:
Hi guys,
I have a strange situation. I've got 1 dashboard MySQL DB accessed from
I was doing this all wrong as Peter pointed out.
I had to make sure of the following:
1 - auth.conf
any auth config for facts and inventory on the puppet master had to go
above this entry
# this one is not stricly necessary, but it has the merit
# of showing the default policy, which is deny
Hi,
I would like to set up an additional puppet master but have the CA server
handled by only 1 puppet master. I have set this up as per the
documentation here:
http://docs.puppetlabs.com/guides/scaling_multiple_masters.html
I have configured my second puppet master as follows:
[main]
...
ca
Today, we are launching the beta version of a new question and answer
site where you can ask any Puppet questions or provide answers for
questions from other Puppet users and developers.
The idea is to give you another way to ask questions if you aren’t a
fan of mailing lists or IRC. It’s similar
Hello,
I'm trying to get puppet-dashboard installed on a CentOS 6.3 machine
running puppet v3.0.1.
I'm following the puppet-dashboard documentation here:
http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html
In the documentation page linked above, it says:
Puppet uses SSL
I do not think what you want exists. It makes sense, as a class is not a
procedural list of commands to execute, but a collection of resources, so a
way to exit early does not really exist. If you just want to avoid the
extra indentation and potentially misplaced closing bracket, how about this
On Mon, Dec 17, 2012 at 2:13 PM, Dawn Foster d...@puppetlabs.com wrote:
Today, we are launching the beta version of a new question and answer
site where you can ask any Puppet questions or provide answers for
questions from other Puppet users and developers.
I bet nobody has a question that
On 12/17/2012 09:02 PM, Philip Brown wrote:
Hi folks,
I've poked around the language reference, and havent found anything on
this so far. I'd like to be able to force a clean early exit from a
module. WITHOUT encasing the whole body of the module in an if statement.
Puppet is not procedural
That's a great question! None that I know of, but I could put together some
screenshots.
On Sat, Dec 15, 2012 at 4:12 PM, Jakov Sosic jso...@srce.hr wrote:
On 12/11/2012 12:33 AM, Aaron Stone wrote:
Update: thanks to help from GitHub users @igreg and @astratto, Puppet
Dashboard Rails 3 is
Please try this PR:
https://github.com/puppetlabs/puppet-dashboard/pull/150
On Fri, Dec 14, 2012 at 11:03 AM, ivan.arsena...@spadz.com wrote:
Change ./app/views/reports/search.html.haml like this :
.item
- if flash[:errors].present?
%div{:class = section error}
%h3
On Monday, December 17, 2012 1:50:38 PM UTC-8, Steven VanDevender wrote:
puppet-mode is kind of rudimentary but I know
the author and he would probably be amenable to improving it, if you
allow him some time.
that would be most appreciated
--
You received this message because you
On Monday, December 17, 2012 3:18:26 PM UTC-8, Jakov Sosic wrote:
Puppet is not procedural but declarative language, so you can only
declare states.
Except that is not strictly true.
There is an early-exit fail directive that can be used conditionally.
So why not a conditional early
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/pip.rb
this is pip's source file.
in the end, you can see this
private
def lazy_pip(*args)
pip *args
rescue NoMethodError = e
if pathname = which('pip')
self.class.commands :pip = pathname
pip
Thank you for the reply, however I do not see where that resolves the
dependency problem. Let me paste what I've been playing with as maybe that
will clarify my problem:
class admins($username, $ensure='present') {
if $ensure == 'present' {
$dirensure = 'directory'
}
elsif $ensure ==
Do you have a habit of making installs and deployments easy and
repeatable? Do you cringe when you see someone doing manual
deployments? Do you take source code and massage it into a released or
deployed product? Do you strive to make the initial installation of a
product as smooth as possible?
On 18 December 2012 10:21, Philip Brown p...@bolthole.com wrote:
On Monday, December 17, 2012 3:18:26 PM UTC-8, Jakov Sosic wrote:
Puppet is not procedural but declarative language, so you can only
declare states.
Except that is not strictly true.
There is an early-exit fail directive
Any chance of using my existing puppet forge account to sign in to that
site?
On 18 December 2012 09:17, Jeff McCune j...@puppetlabs.com wrote:
On Mon, Dec 17, 2012 at 2:13 PM, Dawn Foster d...@puppetlabs.com wrote:
Today, we are launching the beta version of a new question and answer
site
On Mon, Dec 17, 2012 at 7:43 PM, Peter Brown rendhal...@gmail.com wrote:
Any chance of using my existing puppet forge account to sign in to that
site?
Unfortunately, not yet. I'm planning to get the user accounts integrated between
Forge, Ask, bug tracker and other puppet stuff sometime next
Hi,
How to integrate GitHub with Puppet master or agent.
My requirement is I have file in GitHub Repository with different versions,
I want to download latest file from GitHub Repository and need to execute
it. Is it possible to do these steps using puppet master or agent script.
If possible
On 18 December 2012 14:11, Dawn Foster d...@puppetlabs.com wrote:
On Mon, Dec 17, 2012 at 7:43 PM, Peter Brown rendhal...@gmail.com wrote:
Any chance of using my existing puppet forge account to sign in to that
site?
Unfortunately, not yet. I'm planning to get the user accounts integrated
Thank you for the recommendations. I am going to give them a try and see
how they work out in production.
Thanks!
Zane
On Thursday, December 13, 2012 5:06:54 PM UTC-8, Zane Williamson wrote:
Has anyone else ran into this?
debug: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content:
On Mon, Dec 17, 2012 at 6:46 AM, Nikola Petrov nikol...@gmail.com wrote:
You have a bunch of options for this if I understand you well. You can
one of the following:
* use augeas with virtual resources
* use the concat module
Understood. I'm leaning heavily towards augeas at this point
Thanks for perply
I had write perl script to get metrics from log file ( /var/log/messages in
rhel, /var/log/syslog in debian )
http://pastebin.com/u0HZNesZ ( it is for xymon monitoring system )
Also, at other forum, i get 2 advice:
1) It is able to get most of this metrics at agent side,
Hi,
I am currently evaluating Puppet Enterprise 2.7. I would like to know more
about debugging Puppet.
- Can we start Puppet Client in verbose and debug mode as we do in Puppet
(opensource) with -d -v mode.
- I tried to change the server.cfg file with log level verbose, Still
I don't
41 matches
Mail list logo