Displaying 20 results from an estimated 7000 matches similar to: "rspec spec_helper"
2012 Jun 08
1
Announce: puppetlabs_spec_helper 0.1.0 Available
puppetlabs_spec_helper is a Rubygem to make writing and running module spec
tests using rspec-puppet easier. It includes a set of common rake tasks and
a spec_helper that correctly initializes puppet and rspec-puppet for
testing.
The code is available on github at
http://github.com/puppetlabs/puppetlabs_spec_helper. Patches are welcome.
To convert a module with existing spec tests to use the
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 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.
2012 May 25
4
rspec first steps troubles
I try do implement tests for my puppet code and was playing with
rspec-puppet but the following code gives me errors
require ''spec_helper''
describe ''irqbalance'' do
it { should include_class(''irqbalance'') }
it { should include_class(''irqbalance::data'') }
it { should
2013 Mar 29
3
ovf conversion
I try do use one of the images available from [1]
These images comes in two flavors, one vmx, one ovf.
I do not know how to convert one of these to centos6-libvirt-kvm
virt-convert gives me an error
$ virt-convert -i ovf -o virt-image path_to_image.ovf
ERROR Couldn't convert disks: Disk conversion failed with exit status
1: qemu-img: Could not open 'path_to_image.vmdk'
The vmdk
2010 Nov 08
11
Default ownership for static files
Hi,
I try to serve a file
file { "/root/test3.txt":
ensure => file,
source => "puppet:///yum/test.txt",
}
On the puppetmaster this files look like this
#$ ls -n test.txt
-rw-r--r-- 1 502 301 4 8 Nov 16:25 test.txt
Finally, here is my question: What ownership may I expect on the
resulting file ?
Actually this is the result for me:
#$ ls -l
2012 Mar 14
2
hiera on puppet 2.6.12
Hi,
I''m trying to use standard hiera on puppet (gentoo). I simply did
# gem install hiera
Then setup /etc/hiera.yaml
When i call the hiera() function in puppet i get
"Error 400 on SERVER: Unknown function hiera at /data/puppet/manifests/
site.pp:27"
Is there a step that I''m missing?
BTW. standalone hiera works fine.
--
You received this message because you
2012 Dec 17
3
Rspec with rspec-hiera-puppet
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 make it work. FriedBob helped out on the IRC channel some with his solution of including
2012 Jun 04
2
Windows architecture fact
We recently fixed the hardwaremodel and architecture facts on Windows
as they were always returning i386[1]. The change will be in the
upcoming 1.6.10 release of Facter[2]. The new behavior is that
hardwaremodel will return something like i686, ia64, x64, etc, while
the architecture fact will return either x86 or x64.
Since the new behavior will likely affect puppet users that are trying
to write
2012 Aug 17
3
puppet-rspec / puppetlabs_spec_helper
I am using puppet 2.7.14 on Ubuntu 10.04 LTS. I have the following gems:
*** LOCAL GEMS ***
diff-lcs (1.1.3)
hiera (0.3.0)
hiera-puppet (0.3.0)
metaclass (0.0.1)
mocha (0.12.1)
puppet-lint (0.1.13)
puppetlabs_spec_helper (0.2.0)
rake (0.9.2.2)
rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.2)
rspec-mocks (2.11.1)
rspec-puppet (0.1.3)
When I run "rake help" I get the
2019 Oct 12
2
easy way to stop old ssl's
On 11.10.19 22:40, Warren Young wrote:
> On Oct 11, 2019, at 12:12 PM, Jerry Geis <jerry.geis at gmail.com> wrote:
>>
>> is there a script that is available that can be ran to bring
>> a box up to current "accepted" levels ?
>
> I don?t know why you?d use a script for this at all. Just ship a new HTTPS configuration to each server. Apache loads all
2012 Apr 11
8
Facter not initialized in rspec in puppetlabs-stdlib?
I have been working on adding some predicate functions to puppetlabs-stdlib
that test things based on ''interfaces'' and related facts.
The functions themselves seem to work fine in my manifest-based smoketests,
but I am running into trouble that may or may not be due to my ignorance
about rspec or Facter. Something needs to be done to initialize Facter
because
2012 May 21
2
rpm user and groups
Hi!
This is a rpm question.
For example, mysql-server is adding mysql user with uid 27
Is this something I can ask the rpm db?
It seems not, because something like the following seems to give me no
useful information regarding users or uids
$ rpm -qa --provides|grep mysql
I would like to ask: what package would install uid XXX. How? Not possible?
--
Kind Regards, Markus Falb
--------------
2009 Dec 08
2
virt-install failed while install windows2003 guest
Here's the procedure:
# qemu-img -f qcow2 /vm/win2k3.img 8G
# virt-install --connect qemu:///system -n win2k3 -r 512 --vcpus=1 -c /home/temp/win2003sp2ins.iso -f /vm/win2k3.img -s 4
--network=bridge:br0 --mac=00:ff:ff:ff:58:58 --noautoconsole --vnc --os-type=windows --os-variant=win2k3 --hvm --accelerate
And I get error as below:
Starting install...
internal error unable to start guest: qemu:
2012 Jan 29
2
Advise on recovering 2TB RAID1
Hi all,
I have one drive fails on a software 2TB RAID1.
I have removed the failed partition from mdraid and now ready to
replace the failed drive.
I want to ask for opinion if there is better way to do that other than:
1. Put the new HDD.
2. Use parted to recreate the same partition scheme.
3. Use mdadm to rebuild the RAID.
Especially #2 is rather tricky. I have to create an exact partition
2014 Aug 07
1
kickstart - dont wipe data
Hi,
I am struggling with kickstart.
What I want to achieve is a reinstall, but some data partitions should
survive the install, i.e. they should not be formatted.
With a single disk this works, here is the relevant part from the
kickstart file (I shortened the name of the volume group)
...
zerombr
clearpart --none --initlabel
part /boot --fstype="xfs" --label=boot --onpart=vda1
part
2012 Apr 10
2
yum priorities and obsoleting...
Hey,
I ran into a yum conflict regarding an repoforge extra package obsoleting a base package.
The thing is that I set a lower priority to repoforge extra...
Any idea how come I ran into this issue...?
The question is more about the yum priorities than repoforge.
...
1743 packages excluded due to repository priority protections
...
--> Running transaction check
---> Package
2019 Oct 15
1
easy way to stop old ssl's
On 12.10.19 19:33, Warren Young wrote:
> On Oct 12, 2019, at 4:06 AM, Markus Falb <markus.falb at fasel.at> wrote:
>>
>> On 11.10.19 22:40, Warren Young wrote:
>>> Just ship a new HTTPS configuration to each server.
>>
>> Instead of configuring every application separataly it would be nice if
>> "accepted levels of security" could be set
2012 Apr 14
5
Changing Python Version
Hi;
I am trying to change the default version of python on my centos 5.7 box and leave the old installation. Frustrated by not finding any help online, I went ahead and installed Python 2.6 from the source. It appears to be my default, but when I fire up mod_wsgi, it complains that it can't import os. Please advise.
TIA,
Quincey?
2012 Jul 21
1
top on host and guest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have a 6.3 guest running on a 6.3 host and the output from top seems
strange to me. At least I did not expect this.
While in the guest on core is busy with i/o the host seems idle.
Does anyone know why it is this way?
See the output from top below, first the one from guest, then host.
top - 14:12:35 up 12 min, 1 user, load average: 2.76,