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

Basic Help Installing Chocolatey

$
0
0
Hi, I am completely new to Puppet, but reading and learning a lot! I have a working Puppet master with Foreman, and 2 nodes set up and working correctly. I have been pulling my hair out trying to understand the procedure to install Chocolatey to my systems. I was able to get the module onto my server with puppet module install chocolatey-chocolatey I then imported the module to my Puppet master. I assigned the "chocolatey" class to my host and ran puppet on my node. I watched files for Chocolatey download to the node... That's where I stopped. I'm missing something glaringly obvious, just not sure what it is. I've been able to install and deploy other modules from the Forge with no issue. Can anyone help a newbie out??

mesos slave unstable on mesos console.

$
0
0
I am an intern and totally new to mesos, puppet, docker, marathin. I am trying to automate addition of mesos slaves to mesos master using puppet code. For this I downloaded Deric Mesos module(open source) and customized it to the requirement. I have added mesos slaves to mesos master using deric mesos module, but the slave is unstable on the mesos console. Its in a cycle of activated->deactivated->disappear and is very unpredictable. Can anyone please help me to fix this?

is there any way to install or configure puppet on vmware?

$
0
0
I'm planning to install Puppet in my laptop but my RAM is only 2GB but i think we require 8 GB RAM so in order to save space can we install it on VMWare? or pls give suggestions for installing Puppet in efficient way in my lappy.

puppet module install fails

$
0
0
Puppet module install fails with the following error .. Unable to verify the SSL certificate The certificate may not be signed by a valid CA The CA bundle included with OpenSSL may not be valid or up to date Please guide me how I can fix this ?

install oracle client using command line

$
0
0
I used command line to install oracle client 12c silently with the following code. exec{'oracle': command => "setup.exe -silent -responseFile E:/software/Win64_120102_client/client12c_64.rsp ", path => 'c:\apps', } this installs the client. however. the process doesn't stop. the poweshell gets stuck here. ![image description](/upfiles/14668318209517326.png)

Updating modules reaktor

$
0
0
The pzim Reaktor module works fine for new modules. However if i have to make changes to a few modules, commit the changes in git, the Reaktor does not pick up all the changes - It returns a blank module name and doesn't do the r10k deploy module.

beaker No such file or directory - vagrant

$
0
0
This is my first adventure with beaker. I downloaded the puppetlabs-mysql module. I ran bundle exec rspec spec/acceptance in the mysql folder and i get this error: [vagrant@localhost mysql]$ bundle exec rspec spec/acceptance/ /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS /home/vagrant/.gem/ruby/gems/specinfra-2.56.1/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here Beaker::Hypervisor, found some vagrant boxes to create /usr/share/ruby/open3.rb:211:in `spawn': No such file or directory - vagrant (Errno::ENOENT) from /usr/share/ruby/open3.rb:211:in `popen_run' from /usr/share/ruby/open3.rb:99:in `popen3' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/hypervisor/vagrant.rb:191:in `block in vagrant_cmd' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/hypervisor/vagrant.rb:189:in `chdir' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/hypervisor/vagrant.rb:189:in `vagrant_cmd' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/hypervisor/vagrant.rb:151:in `provision' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/hypervisor.rb:75:in `create' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/network_manager.rb:69:in `block in provision' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/network_manager.rb:68:in `each_key' from /home/vagrant/.gem/ruby/gems/beaker-2.39.0/lib/beaker/network_manager.rb:68:in `provision' from /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec/beaker_shim.rb:35:in `provision' from /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec/spec_helper.rb:46:in `block in ' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core.rb:97:in `configure' from /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec/spec_helper.rb:5:in `' from /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec.rb:5:in `require' from /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec.rb:5:in `' from /home/vagrant/.gem/ruby/gems/beaker-rspec-5.3.0/lib/beaker-rspec.rb:1:in `' from /home/vagrant/.puppet/modules/mysql/spec/spec_helper_acceptance.rb:1:in `require' from /home/vagrant/.puppet/modules/mysql/spec/spec_helper_acceptance.rb:1:in `' from /home/vagrant/.puppet/modules/mysql/spec/acceptance/mysql_backup_spec.rb:1:in `require' from /home/vagrant/.puppet/modules/mysql/spec/acceptance/mysql_backup_spec.rb:1:in `' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361:in `load' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361:in `block in load_spec_files' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359:in `each' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359:in `load_spec_files' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:106:in `setup' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:92:in `run' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in `invoke' from /home/vagrant/.gem/ruby/gems/rspec-core-3.4.4/exe/rspec:4:in `' from /home/vagrant/bin/rspec:23:in `load' from /home/vagrant/bin/rspec:23:in `
' P.S: I have centos7 installed in my vagrant box. I have ruby 2.0.0. Am I missing something very obvious for the vagrant hypervisor? Please clarify. Thanks in advance. Finally, I got this to work by following these steps: Replaced -d in systemctl docker file with daemon as the -d was deprecated. That was causing docker issues while starting the docker engine. export BEAKER_set='docker/centos-7' export PUPPET_INSTALL_TYPE=agent bundle exec rake beaker

How do I do continuous deployment of WAR files using puppet

$
0
0
I would like to know how to do continuous deployment using puppet - the steps that i am looking forward is: 1) what code should be written to trigger puppet to do the deployment whenever code is committed in the CI server (like Jenkins). 2) what should i do to facilitate interaction between puppet and vRealize in order to create VMs in vRealize and what code do I use puppet to do the deployment of WAR/JAR files on the VM created at the vRealize end? 3) How do I pull the code from the Artifactory in the new VM created by vRealize and how do i use puppet to make sure that the deployment was all perfect. Many thanks in advance. I'm really struck and It'd be great to have a response.

Is there a way to loop through resources

$
0
0
lets say I want to create two files with two different contents. i need to do the following: class newfile{ file{"file1": ensure => present, content => "abc", } file{"file2": ensure=>present, content => "xyz", } file{"file3": ensure=>present, content => "def", } and so on }. Is there a way where I can loop this and instead have arrays = [1,2,3.....] , contentarray=["abc", "xyz", "def"...] and while (x=4; x++){ file {"file$array[x]": ensure => present, content => $contentarray[x] } } or something likek that

how to read a text file from svn by puppet script?

$
0
0
how to read a text file from svn by puppet script?

how to restart the server (like weblogic , tomacat )by puppet ?

$
0
0
How to restart the server (like weblogic , tomacat )by puppet script?

How to write a puppet script there only specific user can have rights for the operations ?

$
0
0
How to write a puppet script there only specific user can have rights for the operations ? Currently in my script root user so all operation can be performed even deletion also so how can write a script user specific only ?

How to configure OHS server by puppet script ? any sample example ?

$
0
0
How to configure OHS server by puppet script ? any sample example ?

stuck in a reboot loop

$
0
0
I have Ubuntu 16.04 Desktop clients controlled with puppet. After an install completes, the first puppet sets up LDAP then reboots the computer, however it seems to be stuck in an infinite reboot loop. Here is the puppet manifest that triggers the reboot. Can anyone see why this results in an infinite reboot loop? Note that it all works if I remove the reboot (and instead manually reboot after an install) class ldap_client { package { libnss-ldap: ensure => present, notify => Reboot['after_run'], } file { 'ldap.conf': path => '/etc/ldap.conf', ensure => file, require => Package['libnss-ldap'], source => "puppet:///modules/ldap_client/ldap.conf", notify => Reboot['after_run'], } file { 'ldap.secret': path => '/etc/ldap.secret', ensure => file, require => Package['libnss-ldap'], mode => '0400', source => "puppet:///modules/ldap_client/ldap.secret", notify => Reboot['after_run'], } file { 'nsswitch.conf': path => '/etc/nsswitch.conf', ensure => file, require => Package['libnss-ldap'], source => "puppet:///modules/ldap_client/nsswitch.conf", notify => Reboot['after_run'], # This file is in: modules/ldap_client/files } file { 'common-session': path => '/etc/pam.d/common-session', ensure => file, require => Package['libnss-ldap'], source => "puppet:///modules/ldap_client/pam.d/common-session", notify => Reboot['after_run'], } class { 'fstab' : } fstab::mount { '/home': ensure => 'mounted', device => '192.168.0.6:/nfshome', options => 'auto,noatime,bg,tcp,hard', fstype => 'nfs', notify => Reboot['after_run'], } reboot { 'after_run': apply => finished, } file { '/etc/lightdm': ensure => directory, } file { 'lightdm.conf': path => '/etc/lightdm/lightdm.conf', ensure => file, source => "puppet:///modules/ldap_client/lightdm/lightdm.conf", require => File['/etc/lightdm'], } }

How to configure OAM policy by puppet script ? sample code ?

$
0
0
How to configure OAM policy by puppet script ? sample code ?

How to redeploy and rollback a war file on weblogic server by puppet script?

$
0
0
How to redeploy and rollback a war file on weblogic server by puppet script?

how to execute wlst file (weblogic) by puppet script ?

$
0
0
how to execute wlst file (weblogic) by puppet script ?

rspec puppet directory

$
0
0
Hello, For the below mentioned puppet code, how do I write the rspec puppet tests? Please provide example snippets that has worked. I searched in the Internet but couldn't find relevant answer. file { '/opt/cdadmin' : ensure => 'directory', mode => '0755', owner => 'root', group => 'root', } I tried doing tests like the following: require 'spec_helper' describe 'admin_dir_setup' do context 'with default values for all parameters' do it { should contain_class('admin_dir_setup') } it do should contain_file('/opt/cdamin').with( :ensure => 'directory', :mode => '0755', :owner => 'root', :group => 'root' ) end it do should contain_file('/opt/cdamin/bin').with( :ensure => 'directory', :mode => '0755', :owner => 'root', :group => 'root' ) end end end . Failures: Failures: 1) admin_dir_setup with default values for all parameters should contain File[/opt/cdamin] with ensure => "directory", mode => "0755", owner => "root" and group => "root" Failure/Error: should contain_file('/opt/cdamin').with( :ensure => 'directory', :mode => '0755', :owner => 'root', :group => 'root' ) expected that the catalogue would contain File[/opt/cdamin] # ./spec/classes/init_spec.rb:6:in `block (3 levels) in ' 2) admin_dir_setup with default values for all parameters should contain File[/opt/cdamin/bin] with ensure => "directory", mode => "0755", owner => "root" and group => "root" Failure/Error: should contain_file('/opt/cdamin/bin').with( :ensure => 'directory', :mode => '0755', :owner => 'root', :group => 'root' ) expected that the catalogue would contain File[/opt/cdamin/bin] # ./spec/classes/init_spec.rb:13:in `block (3 levels) in ' Finished in 0.45498 seconds (files took 1.36 seconds to load) 3 examples, 2 failures Failed examples: rspec ./spec/classes/init_spec.rb:5 # admin_dir_setup with default values for all parameters should contain File[/opt/cdamin] with ensure => "directory", mode => "0755", owner => "root" and group => "root" rspec ./spec/classes/init_spec.rb:12 # admin_dir_setup with default values for all parameters should contain File[/opt/cdamin/bin] with ensure => "directory", mode => "0755", owner => "root" and group => "root" Please help! Thanks.

how to send email by puppet script for specific user group ?

$
0
0
how to send email by puppet script for specific user group ?

VMware host profiles alternative?

$
0
0
I'm not yet a Puppet user, so I'm not fully aware of its capabilities. I'm looking for something to handle VMware ESXi host configuration similar to how their host profiles work. Will Puppet fit the bill? Would the hypervisor need an agent installed (not sure if this is possible)? I appreciate any feedback or suggestions.
Viewing all 6104 articles
Browse latest View live


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