Displaying 20 results from an estimated 50000 matches similar to: "RSpec-testing an entire puppet master"
2013 Jun 27
5
Is it possible to pass extra flags to Puppet via rspec?`
Hello,
I''m writing my first puppet function rspec test and am having a problem
which I don''t see how to solve.
The function (and the test) involve access to files through the File
Server. In order for the function (and the test) to work I need to pass
"--fileserverconf=fileserver.conf" parameter to Puppet.
So far I haven''t found a way to do that.
If I
2013 Feb 08
2
Installing puppet master and puppetdb on the same host.
Hi Guys,
I am new to the world of puppet.
I have successfully configured puppet on centos 6 and am now trying to
install puppetb on the same host.
After the configuration when I try to run puppetd --test command on the
client I get :
[root@puppettest ~]# puppetd --test
notice: Ignoring --listen on onetime run
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed to
2012 Jul 27
0
rspec-puppet: function stubs
I''m looking for a way to stub a parser function within rspec-puppet. This
function returns data based on a database query and I''d rather not have to
populate dummy data inside my rspec tests.
I can redefine the function by doing something like the following:
Puppet::Parser::Functions::rmfunction("lookup_facts")
Puppet::Parser::Functions::newfunction(:lookup_facts,
2013 Apr 26
3
how do you test and release puppet changes?
We are in the process of evaluating our puppet related test and
release process and interested in knowing what other folks are doing.
We are in a position that is not ideal but is not unique from what I
can tell. Our current testing process is basically the
responsibility of each person making a change. Small changes are
committed and pushed to dev/qa/prod in one swoop with the committer
spot
2013 Feb 08
3
issue storing facts values in mysql on puppet master 3.0.2
Hi,
I got the following error:- Error: Could not retrieve catalog from remote
server: wrong header line format
In puppet.conf file on puppetmaster, I added following lines -
facts_terminus = inventory_active_record
dbadapter = mysql
dbname = dashboard
dbuser = test
dbpassword = test123
dbserver = puppet-master.com
dbsocket =
2013 Mar 01
2
Puppet newbie
Hi
I am new in Puppet and i have one error when i test Postgresql module in
infrastructure mode.
I''m using Puppet 3.1.0 in Debian squeeze or 6.0.7
i tape the next command puppetd -t -v and this is the error
info: Retrieving plugin
info: Loading facts in pe_version
info: Loading facts in postgres_default_version
info: Loading facts in iptables
info: Loading facts in puppet_vardir
2013 Dec 18
0
Resources not exported from puppet agent run on the Puppet Master nodes with PuppetDB
I could use some help debugging a bazaar PuppetDB problem. Exported
resources seem to be working fine everywhere except for on the Puppet
Masters themselves. Whenever I run the puppet agent on them everything
seems to go fine and I see the catalog getting submitted to PuppetDB in the
logs. However, when I run puppet on the node that should collect these
resources they aren''t
2013 Aug 30
3
rspec-puppet not working
I''m trying to get rspec-puppet working and have run into a problem. I have
a VM running ubuntu lucid, have installed rubygems 1.3.5 from the apt
package and have install rspec-puppet (and other required gems), and rake,
using gem install.
I''ve run rspec-puppet-init in the module I want to test, and have created a
very basic spec file for one of the classes in my module.
2013 Jun 06
2
Trouble getting puppet config from client to master (Certificate verify failed).
Hello,
I''m having trouble between the client and the master. Please help!
*root@r3:~# puppet agent --test*
Info: Caching certificate for r3.pb
Info: Caching certificate_revocation_list for ca
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate
B: certificate verify failed:
2013 Apr 22
4
Puppet catalog transfer often gets truncated (Could not intern from pson: error)
I''ve been hitting this issue for a long time. well over a year and I guess
it''s time to start pushing it to try to find the root cause. I''ve seen
this reported several times in the past but I''ve never seen a resolution
found for this exact problems. There are other root causes for pson errors
that have been resolved, but not for the ones describing my
2013 Nov 01
1
HELP!!! puppet-enterprise-3.1.0-el-6-i386 master/agent test fails
**
I installed PE Master on one VM and Agents on two VMs pointing to master .
Agent1 VM 64 bit works fine , but agent2 VM 32 bit fails with below error.
Only difference is architecture. One more note both the agent nodes were
accepted from Dashboard,so master has both the certificates.
Any help will be greatly appreciated.
puppet-enterprise-3.1.0-el-6-i386]# puppet agent --test
Info:
2013 Mar 28
0
Puppet node does not see manifests on new puppet master
I have a puppet master that I had recently split into two, one handling just CA functionality and one handling the normal puppet master operations.
puppet_ca
puppet_master
Otherwise, both are configured identically as follows:
1) The modules are stored into separate environments under /etc/puppet/environments:
/etc/puppet/environments/foo/modules
/etc/puppet/environments/bar/modules
2013 Jun 08
1
Puppet error reporting
Trying to understand how puppet reports errors
Example of why I am asking the question (on a test setup environment)
Created a base-1 node
Created 2 slave nodes that inherit from base-1
Let''s call those slave1 and slave2
No errors. It all works.
Created a base-2 node
created a third slave that inherits from base-2. Let''s call that slave3
Get an error
Could not retrieve
2013 Jun 12
3
puppet agent errors for non included module.
Does anyone know why i would get a module error for my ''base'' module that
I''m not even including for a node? I''m explicitly NOT include the ''base'',
yet puppet-client-t2 still errors when i pull it in. Snips from both are
below. Any ideas why this would happen?
Thanks,
JJ
====
site.pp file
[root@puppet-master-t1 puppet]# cat
2013 Nov 12
1
How to get Puppet Ent Agent for Mac Mountain Lion?
Dear All,
I''m very new to Puppet Enterprise.... I have the following setup so far:
1. Puppet Master (Puppet Ent) on Ubuntu with its own Agent
2. Puppet Agent on MAC Mountain Lion
Everything looked ok but then I noticed this on the MAC (below), which
suggested to me I had the wrong Agent? I''m a little confused on how to get
the Puppet Ent Agent for MAC?
Info: Retrieving
2013 Sep 18
1
All nodes stopped reporting to puppet enterprise console
My install was working for a couple of months until I rebooted my puppet
server. The clients do not report an error when I run puppet agent -t.
I''ve attempted to remove certificates and renew. The clients get new
certificates, but the console still does not update. Even the puppet
server itself is not updating as a client. After reboot the only thing I
have noticed that changed
2013 Aug 15
0
Rspec, Puppet Custom Functions and Mocking..
Hey, I could use some advice here. We''ve had a puppet module out for a
while (https://github.com/Nextdoor/puppet_thycotic) that provides us a way
to retrieve private keys, passwords, etc from Thycotic''s
SecretServerOnline.com service. This module was written in a hurry almost 2
years ago and has never had any real attention paid to it internally until
now.
We''re
2013 Feb 15
1
Errors when running 'puppet agent --test' command
Hello,
First of all I am new to the Puppet technology. I am trying to get my
puppet agent (windows) to reach my puppet master (Linux) server.
In this tutorial:
http://docs.puppetlabs.com/learning/agent_master_basic.html
It claims to test your puppet agent you need to use the ''puppet agent
--test'' command. My result when I tried this is:
C:\Program Files (x86)\Puppet
2013 Sep 17
6
rspec-puppet require syntax
Can someone tell me the correct way to specify the following require
statement in an rspec-puppet test?
*require =>
[Class[''ssl''],Class[''pcre3''],Staging::Extract["nginx-${version}.tar.gz"]]*
I tried this: *''require'' =>
2013 Mar 02
0
Problems getting rspec testing working in OSX?
Hey Gang,
Running into a weird error when trying to follow puppetlabs'' blog:
https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/
I''m running 10.8.2, using default ruby, in an attempt to make my home env a little more sane, (ran into weird rbenv issues at work, which I won''t go into here)
The google tells me not a whole lot. Appreciate any help