Hi Pedro,
On Tue, Feb 7, 2012 at 2:04 AM, Pedro Lafuente wrote:
> Just wondering if anyone has successfully used puppet in combination
> with NSIS installers (afaik only msi support is available at the
> moment - i'm not yet familiar with puppet's capabilities under windows
> systems).
>
Puppet
Hi,
On 02/08/2012 07:43 AM, jimbob palmer wrote:
> Now I will use includes as you suggest. Say I have a class that has an
> include, is there a guarantee that the include will always be included
> before the rest of the class is examined?
Referencing variables scoped to included classes will *alw
It's bound to be sub-optimal, but I too found puppet-lvm hard to get started
with. Firstly, I took a long time to discover that I needed to set pluginsync
to get the module copied to all hosts:-
augeas { "puppet-pluginsync":
context => "/files/etc/puppet/puppet.conf/main",
changes
Hi,
Being a newbie, I'm trying to wrap my head around puppet. Here are my
first stumbling blocks:
We have an output from a database which is essentially a list of users
that we want to manage in the uid 2001-2999 range:
* No other users may be present in that range (puppet should delete them)
*
Hi,
I have written a sample manifest in puppet using Ruby DSL. I want to
build a looping functionality. But I am getting problem as shown
below:
root@puppet-swproxy:/tmp# cat test.rb
hostclass :test do
$abc = ["a","b"]
$abc.each do |sip|
create_resource :exec, "echoabc", :command => "echo #{sip
Hi,
I need to define the hostclass with special character for ex:
"swift::proxy-ring"
I have tried following ways but not worked:
1) hostclass :swift::proxy-ring do
2) hostclass 'swift::proxy-ring' do
3) hostclass "swift::proxy-ring" do
When I am using the 2 and 3 options it is giving follow
Hi,
Facter value is not reflecting in puppet manifest.
Along with books ProPuppet and "Puppet 2.7 Cookbook", I am referring to
following links:
http://docs.puppetlabs.com/guides/custom_facts.html
http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts
http://docs.puppetlabs.com/guides/plugins
Morning,
I am trying to do some environment setup on our developer's virtual
boxes that we use vagrant+puppet to build. We install a python app,
create virtualenv's for the different pip requirements, etc.
Problem is that there are some custom bash macros that are available
in our virtualenv as
On 02/08/2012 12:57 PM, sateesh wrote:
> I need to define the hostclass with special character for ex:
> "swift::proxy-ring"
Uhm...why? Dashes are not allowed in any puppet classes. Why do you want
them so much? Can you not simply substitute and underscore (_) ?
Cheers,
Felix
--
You received th
Hi Felix,
Even I tried to remove that Hiphen and tried. Stil I am getting the
same error.
dir structure is
/modules/swift/manifests/proxyinstall.rb
in this I have declared the class
hostclass "swift::proxyring" do
#code here
end
Still I am getting same error.
Can you give an example for th
sorry the dir structure is /modules/swift/manifests/proxyring.rb
On Feb 8, 6:17 pm, sateesh wrote:
> Hi Felix,
>
> Even I tried to remove that Hiphen and tried. Stil I am getting the
> same error.
>
> dir structure is
>
> /modules/swift/manifests/proxyinstall.rb
>
> in this I have declared the cl
Please give me any example for implementing this. Also when I am
writing Puppet DSL, it is allowing me the dashes.
On Feb 8, 5:35 pm, Felix Frank
wrote:
> On 02/08/2012 12:57 PM, sateesh wrote:
>
> > I need to define the hostclass with special character for ex:
> > "swift::proxy-ring"
>
> Uhm...w
On 02/08/2012 02:19 PM, sateesh wrote:
> Please give me any example for implementing this. Also when I am
> writing Puppet DSL, it is allowing me the dashes.
Sorry, I have no idea what you're trying to do. I never heard of
"hostclass". I just reacted to your statement that "special characters"
wer
Also no idea what you are trying to do, but your manifest should have
.pp as it's extension.
On Wed, Feb 8, 2012 at 15:27, Felix Frank
wrote:
> On 02/08/2012 02:19 PM, sateesh wrote:
>> Please give me any example for implementing this. Also when I am
>> writing Puppet DSL, it is allowing me the d
Hi,
I found what is the issue. The issue is in exec I am using require
attribute in which I specified
:require => Class['swift::proxy-install']
How should I need to specify this in Ruby DSL.
Thanks,
Sateesh B.
On Feb 8, 5:35 pm, Felix Frank
wrote:
> On 02/08/2012 12:57 PM, sateesh wrote:
>
>
On Feb 7, 8:17 am, thinkwell wrote:
> Hello everyone,
>
> First-time poster investigating Puppet for managing CentOS-based
> firewall distros at various locations. I have approximately 130
> machines to administrate so some type of config management is
> certainly needed.
>
> I've been working t
2012/2/8 Felix Frank :
> Hi,
>
> On 02/08/2012 07:43 AM, jimbob palmer wrote:
>> Now I will use includes as you suggest. Say I have a class that has an
>> include, is there a guarantee that the include will always be included
>> before the rest of the class is examined?
>
> Referencing variables sc
On Feb 7, 2:46 pm, weloki wrote:
> I need to both build some new servers and rebuild some existing ones
> keeping in mind I want to use Puppet. The question is which is the
> best sequence to proceed with?
>
> A) Develop modules one by one and make sure each component works, then
> assemble and
First trick with users across multiple machines is to have the same userid for
the same login.
“Sometimes I think the surest sign that intelligent life exists elsewhere in
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
- Peter Valdemar Mørch wrote
Hi,
On 02/08/2012 02:57 PM, jimbob palmer wrote:
> So say I have a single class which in order I need to ensure a file
> doesn't exist, then after that install a package, then after that call
> a define function.
careful: define() has nothing to do with custom functions.
You create a definded *t
On Feb 8, 12:43 am, jimbob palmer wrote:
> Thanks. but I meant more within the same class: before I was using
> class inheritance to ensure that I don't have to worry about ordering.
Class foo::specific 'include'ing class foo::common on the first line
of its body gives exactly the same orderin
http://projects.puppetlabs.com/issues/5268
FYI: According to this bug-report, Ruby does not allow a dash in a class name,
so neither does Puppet
Try underscore instead: proxy_ring
“Sometimes I think the surest sign that intelligent life exists elsewhere in
the universe is that none of it has t
On Wed, Feb 8, 2012 at 3:12 PM, Dan White wrote:
> First trick with users across multiple machines is to have the same userid
> for the same login.
I'm not sure I understand. I read this as a suggestion to make it
impossible to rename a user. "First trick is to change the
requirements" ;-) Did
Would something along the lines of:
{code}
command => "bash -l -c 'sudo su - panama && workon dev && mmf_eggs'",
{code}
work?
-Kevin
On Feb 8, 6:17 am, kevin c wrote:
> Morning,
>
> I am trying to do some environment setup on our developer's virtual
> boxes that we use vagrant+puppet to build.
On Feb 8, 4:03 am, Peter Valdemar Mørch wrote:
> Hi,
>
> Being a newbie, I'm trying to wrap my head around puppet. Here are my
> first stumbling blocks:
>
> We have an output from a database which is essentially a list of users
> that we want to manage in the uid 2001-2999 range:
>
> * No other
http://www.puppetcookbook.com/posts/remove-all-unmanaged-host-entries.html
Like this, but with users instead of hosts
“Sometimes I think the surest sign that intelligent life exists elsewhere in
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
- Pete
About renaming a user:
In practice, I try to avoid this because there are too many things a username
touches for me to be comfortable that I have caught it all.
Easier to delete the old user and then create a new one.
The complication happens if there are files that need to be preserved.
“Som
Thanks everyone. Seems like having an older version of Master causes
this problem but I do not have an older version. My clients and Master
are both 2.7.10.
Any ideas would be greatly appreciated. Thanks in advance.
On Feb 7, 4:53 pm, "Shawn" wrote:
> I noticed this problem today with a 2.6.3 cl
On Feb 8, 4:11 am, sateesh wrote:
> Hi,
>
> I have written a sample manifest in puppet using Ruby DSL. I want to
> build a looping functionality. But I am getting problem as shown
> below:
>
> root@puppet-swproxy:/tmp# cat test.rb
> hostclass :test do
> $abc = ["a","b"]
> $abc.each do |sip|
>
On Feb 8, 6:17 am, kevin c wrote:
> Morning,
>
> I am trying to do some environment setup on our developer's virtual
> boxes that we use vagrant+puppet to build. We install a python app,
> create virtualenv's for the different pip requirements, etc.
>
> Problem is that there are some custom bas
On Wed, Feb 8, 2012 at 4:23 PM, jcbollinger wrote:
> To give you a good answer, I need to understand this a bit better, and
> I'm having trouble with that statement. On Unix-like systems the user
> name is the primary identifier, and UIDs are only secondary. It is
> even possible for two or more
On Feb 8, 7:31 am, Walter Heck wrote:
> Also no idea what you are trying to do, but your manifest should have
> .pp as it's extension.
>
> On Wed, Feb 8, 2012 at 15:27, Felix Frank
>
>
>
> wrote:
> > On 02/08/2012 02:19 PM, sateesh wrote:
> >> Please give me any example for implementing this. A
On Feb 8, 2012, at 9:40 AM, rjl wrote:
> Thanks everyone. Seems like having an older version of Master causes
> this problem but I do not have an older version. My clients and Master
> are both 2.7.10.
I'm thinking that perhaps you have more than 1 version of ruby/puppet installed
on the se
I ran into an issue a while back on my puppet master where I had upgraded
puppet and the result put the puppet executables in a different directory
than I expected. The /etc/init.d script that I used to start puppet master
was looking in the old directory and starting the wrong version.
Be sure y
And if you suspect this, you can test which version the agents are
ACTUALLY talking to by using a notify resource to log a message
containing the magic $serverversion variable. (http://
docs.puppetlabs.com/guides/faq.html#are-there-variables-available-
other-than-those-provided-by-facter)
On Feb 8
On Tue, Feb 7, 2012 at 06:17, thinkwell wrote:
> First-time poster investigating Puppet for managing CentOS-based
> firewall distros at various locations. I have approximately 130
> machines to administrate so some type of config management is
> certainly needed.
>
> I've been working through Pup
On Tue, Feb 7, 2012 at 23:56, Gonzalo Servat wrote:
> On Wed, Feb 8, 2012 at 3:25 PM, Brian Gallew wrote:
>>
>> If you are like me, the problem is that the ruby for your platform sucks.
>> The webstack ruby 1.8.7 for Solaris 10 has a nasty tendency to hang (for
>> the daemons) and core dump for
Hi,
I want to create a user with a random password. Is there a way to only
execute the manifest once when the user does not exist but not once
the user is created?
I know how to create a random password and can use generate to execute
this function (or make it a custom fact provided I get this fa
On Feb 8, 12:39 pm, Daniel Pittman wrote:
> Ultimately, though, you are *seeing* the problem you already had, just
> laid out in a way that calls attention to it.
+1
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, sen
On Wed, Feb 8, 2012 at 11:30 AM, wernerbahlke wrote:
> Hi,
>
> I want to create a user with a random password. Is there a way to only
> execute the manifest once when the user does not exist but not once
> the user is created?
>
For situations like this I use the puppet generate() function to cre
In one user management setup, I use htpasswd to create a random password just
to secure the account.
Like this:
htpasswd -nmb whoever `mkpasswd` | cut -d: -f2 | passwd --stdin
Then, with over-the-shoulder admin access, the user can set their own password.
“Sometimes I think the surest sign th
On Wed, Feb 8, 2012 at 11:30 AM, wernerbahlke wrote:
> Hi,
>
> I want to create a user with a random password. Is there a way to only
> execute the manifest once when the user does not exist but not once
> the user is created?
>
> I know how to create a random password and can use generate to exec
Thanks John,
exec { 'panama-eggs':
path=> ["/bin","/usr/bin","/usr/local/python/bin"],
environment => ['WORKON_HOME=/home/panama/.virtualenvs',
'PIP_LOG_FILE=/tmp/pip-freeze-prod.log', 'PIP_VIRTUALENV_BASE=/home/
panama/.virtualenvs', 'VIRTUALENVWRAPPER_PYTHON=/usr/local/py
Hi folks,
After installing dashboard after follwing the instructions here:
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html
I find that the reports are not uploading. In my puppet.conf the [master]
section has the following:
# Dashboard stuff
reports = store, html
Immediately before that, did you miss the agent configuration?
# puppet.conf (on each agent)
[agent]
report = true
On Wed, Feb 8, 2012 at 1:16 PM, Peter Berghold wrote:
> Hi folks,
>
> After installing dashboard after follwing the instructions here:
> http://docs.puppetlabs.com/dashbo
On Feb 1, 2012, at 8:06 PM, Nan Liu wrote:
> Puppet uses REST, so you can run puppet master on 443 to work around
> firewalls.
I would like to get a bit more information on this.
Is it as simple as setting all the ports in puppet.conf to 443 on master and
agent ?
“Sometimes I think the surest
On Wed, Feb 8, 2012 at 1:37 PM, Dan White wrote:
> On Feb 1, 2012, at 8:06 PM, Nan Liu wrote:
>> Puppet uses REST, so you can run puppet master on 443 to work around
>> firewalls.
>
> I would like to get a bit more information on this.
>
> Is it as simple as setting all the ports in puppet.conf t
That's in there.
Each of the hosts running the agent already have that in there...
On Wed, Feb 8, 2012 at 4:27 PM, Russell Van Tassell wrote:
> Immediately before that, did you miss the agent configuration?
>
> # puppet.conf (on each agent)
> [agent]
> report = true
>
>
>
>
> On Wed, Fe
On Thu, Feb 9, 2012 at 5:44 AM, Daniel Pittman
wrote:
> RedHat released some update kernels that reintroduced a bug from the
> 2.6.13 Linux kernel. You can run any of the code in this gist to
> check if your kernel suffers that: https://gist.github.com/441278
>
> The C code is obviously a pretty
On Wed, Feb 8, 2012 at 14:40, Gonzalo Servat wrote:
> On Thu, Feb 9, 2012 at 5:44 AM, Daniel Pittman wrote:
>> RedHat released some update kernels that reintroduced a bug from the
>> 2.6.13 Linux kernel. You can run any of the code in this gist to
>> check if your kernel suffers that: https://gi
Thank you, you just added hours to my life! 3.0.11 works perfect. Perhaps
the puppetlabs docs should make note of this?
--
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/pu
I've got a bit of a head-scratcher here, though I'm sure it must be
something small. I'm trying to enable a service for next boot without
starting it. That usually "just works" but for some reason this time
around it isn't. The node keeps trying to start the service which
will always fail becaus
Hi,
I'd like to start using Puppet to manage an httpd.conf file across
several webservers. I have a Puppet server and client config setup and
have followed a couple of simple "How To's" to get off the ground. I'm
syncing a couple of files and ensuring certain packages are installed
etc on the clie
On Wed, Feb 8, 2012 at 15:34, Aaron Grewell wrote:
> I've got a bit of a head-scratcher here, though I'm sure it must be
> something small. I'm trying to enable a service for next boot without
> starting it. That usually "just works" but for some reason this time
> around it isn't. The node ke
On 02/08/2012 04:11 PM, Daniel Pittman wrote:
> You can't: if you tell Puppet to ensure the service is running, it
> will try to start it every time it finds it "out of compliance".
>
Look at the code. I didn't ensure => running. I set enable => true.
AFAIK that doesn't mean 'start the service'
On Wed, Feb 8, 2012 at 16:13, Aaron Grewell wrote:
> On 02/08/2012 04:11 PM, Daniel Pittman wrote:
>> You can't: if you tell Puppet to ensure the service is running, it
>> will try to start it every time it finds it "out of compliance".
>
> Look at the code. I didn't ensure => running. I set ena
On 02/08/2012 04:29 PM, Daniel Pittman wrote:
> On Wed, Feb 8, 2012 at 16:13, Aaron Grewell wrote:
>> On 02/08/2012 04:11 PM, Daniel Pittman wrote:
>>> You can't: if you tell Puppet to ensure the service is running, it
>>> will try to start it every time it finds it "out of compliance".
>>
>> Look
On Wed, Feb 8, 2012 at 3:46 PM, the_fonz wrote:
> Hi,
>
> I'd like to start using Puppet to manage an httpd.conf file across
> several webservers. I have a Puppet server and client config setup and
> have followed a couple of simple "How To's" to get off the ground. I'm
> syncing a couple of files
On Feb 8, 2012, at 4:50 PM, Michael Stahnke wrote:
> On Wed, Feb 8, 2012 at 1:37 PM, Dan White wrote:
>> On Feb 1, 2012, at 8:06 PM, Nan Liu wrote:
>>> Puppet uses REST, so you can run puppet master on 443 to work around
>>> firewalls.
>>
>> I would like to get a bit more information on this.
Hi John,
I have solve that class issue. I have specified that as
hostclass :'swift::proxy-ring' and it worked. My problem is I have to
run the exec command in the script for which the Class "swift::proxy-
install" is required. So, in general puppet DSL we will write that as
follows:
exec {"somela
Sateesh,
Still not following why you need to use the Ruby DSL.
There are many great reasons to ultimately use the Ruby DSL, but right now you
are seemingly struggling to learn/understand Puppet fundamentals. I would
strongly suggest that the Puppet DSL is there for a reason - it will help you
Hi John,
Thank you for your response.
I am using the Ruby DSL, as I need to loop some exec commands for
which there will be some IP adress array that will be passed. Please
find below my actual code:
hostclass :swift::proxy-ring do
require "swift::common"
$storage_local_net_ip = ['IP1','IP2
Sateesh,
It is better if you don't look at it as a "loop." A loop is a very procedural
concept. You are working with a machine that you are trying to get into a
fixed state.
So better to think "I want to have a bunch of similar-looking resources that
are identified and enumerated in an array
Further, you should remember that there is no reason for an Apache
configuration to be monolithic. Apache is perfectly happy to have a bunch
of files to include. Throw in a naming convention (e.g. files named
foo.ssl will be included by my SSL config file) and you've got some real
flexibility.
O
>
> Damn. Well, at least we eliminated one possible cause. Is there any
> chance you can run with `--debug` enabled on one of the failed
> machines, and see if that points to the right place? Otherwise we
> have to start to get into some fairly heavy ways to figure out what is
> going on.
>
OK
Hi,
What is the "require 'class'" equivalent in Ruby DSL.
in pp file when I say require 'swift::common' in pp file, class is
located in /etc/modules/puppet/swift/manifests/common.pp is working
fine.
But when I keep that in RubyDSL file, I am getting error
(eval):3:in `require': no such file to
Id be interested also. I live about 1.5 hours away which in Texas
terms isnt that far. Let me know when and where.
- Trey
On Feb 7, 9:04 pm, Dan Bode wrote:
> Hi Austin Puppet Users,
>
> I will be in the area in a few weeks and I would like to try to get some of
> the local users together to t
67 matches
Mail list logo