Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Browsing all 6104 articles
Browse latest View live
↧

how to use alias for host in serverspec

Hi, Below is the puppet manifests, host { $::fqdn : ensure => $ensure, host_aliases => $::hostname, ip => $::ipaddress, } I have written below serverspec for this describe...

View Article


running Puppet on this node 2015.3 (API ?)

Hello, i noticed that there's a new section on every node called "running Puppet on this node". Right now i use mco for remote execution of an agent run but need this function to have integrated in my...

View Article


dependency cycle : don't understand why

Hi, i have this error when i tried to link some classes : Error: Failed to apply catalog: Found 1 dependency cycle: (Exec[purge rpm cache tuxedo 12.1.3.0.0.30-1] =>...

View Article

equal sign not working in serverspec for if condition

Hi, I have written below serverspec if os[:release] == '6' describe file('/etc/test.conf') do it { should exist } it { should be_owned_by 'root' } it { should be_grouped_into 'root' } it { should...

View Article

How to implement windows_updates module in site.pp

My sincerest apologies....I'm a total Puppet newbie and been spending a lot of time writing the usual practice modules to learn it on Linux since it's the OS I'm most proficient in. I want to demo...

View Article


command "puppet resource scheduled_task" , it does not provide all the...

I found that the above query is only providing the scheduled task listed in directory path "c:/windows/system32/tasks". But there are many other scheduled tasks under directory "c:/windows/tasks" ....

View Article

API for sign cert 2015.3

I checked all API docs but didn't find a hint how to sign certs via API. Since Puppet does provide razor for bare-metal, of course, i want to automate all tasks without interaction. How to sign certs...

View Article

I am trying to install asp net mvc 1.0 in servers. Can anyone help me with...

Below is the code I am using in ruby mine. package { 'Microsoft ASP NET MVC': ensure => 'installed', provider => 'msi' source => "$profile::base::installersPath\\AspNetMVC1.msi",...

View Article


quest vm no cowsay

I'm trying to work my way through the quests in the training VM. But on running the --noop command in Manifests and classes I get the following result. puppet apply --noop cowsayings/tests/cowsay.pp...

View Article


class is already declared error cannot redeclaire how to fix?

I am getting this when I run my modules with Satellite and puppet . I have the puppet agent installed and alot of stuff is working right, but I have this nagging problem I am not sure how to fix....

View Article

Trouble Parsing a Structured Fact

I am trying to return the UUID for a given partition. This is the closest I can get, but you can see it returns everything in `$::partitions`, and then appends "[sda1][uuid]" at the end as if it's...

View Article

Puppetdb module installation fails at postgresql

I am running on Puppet version 3.7.4, and Debian 7.8 Even on the simplest manifest I can use: node testytest { class { 'puppetdb':} } Running puppet agent fails with this error: ==> default: Error:...

View Article

what is the difference between pe_build and pe_version?

what is the difference between facter pe_build and facter pe_version, facter pe_build is returning 2015.3.0 facter pe_version is returning 4.3.1 how to get the version correctly in all the puppet...

View Article


How to copy file from one agent to another agent using puppet?

I want to copy a file from one linux machine to another linux machine using puppet. Both linux machines have puppet agent running.

View Article

Any one have idea how to check entire file in serverspec for puppet testing

Hi, I know if we need to check the content of a file we use the below `should match /^ test $/` in serverspec. But how can we check the entire file content is copied to the destination file. Example...

View Article


error after stdlib update

It seems that puppet-stdlib module has been updated recently and I started seeing the following error ``` Could not retrieve fact='package_provider', resolution='': Malformed version number string...

View Article

why serverspec compare all if conditions for os family

Hi I have below serverspec tests for puppet testing, its testing all the if condition, though my os belongs to rhel6 if os[:release] = 5 describe file('/etc/modprobe.conf') do it { should exist } end...

View Article


quest mysql task 4 error

I include below line in site.pp file for quest mysql task 4: include mysql::server::account_security Then ran "puppet agent -t". It gave me below error: [root@learning...

View Article

Rake command not working in puppet 3.8

rake command is throwing error in puppet 3.8. The following is the command and the error.>/usr/bin/rake -f --trace /usr/share/puppet-dashboard/Rakefile RAILS_ENV=production...

View Article

Can Open Source Puppet support for cross platform functionality?

I am setting up Open Source Puppet master on CentOS 6 and my infrastructure nodes are mixtures of Windows and Unix. can i be able to manage all of my nodes (Windows + Unix) through Open source puppet...

View Article
Browsing all 6104 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>