[Puppet Users] Re: Could not retrieve local facts: undefined method `require_relative' for main:Object

2017-05-18 Thread Helen Paterson
thank you I see that this only fails on my Ubuntu 12 servers with ruby 1.8 and is fine on Ubuntu 14 ruby 1.9. i believe this happened after a college upgraded stlib On Wednesday, May 17, 2017 at 3:34:01 PM UTC+1, Helen Paterson wrote: > > Hi, > > im currently getting the followin

[Puppet Users] Could not retrieve local facts: undefined method `require_relative' for main:Object

2017-05-17 Thread Helen Paterson
Hi, im currently getting the following error on a few of my Ubuntu solr servers Error: Could not retrieve local facts: undefined method `require_relative' for main:Object Error: Failed to apply catalog: Could not retrieve local facts: undefined method `require_relative' for main:Object we are

[Puppet Users] how do i get $title from the hiera array

2016-11-24 Thread Helen Paterson
I would like to get the hiera array title only, i.e i'd like to lookup * Admin*, Public,Assets without the ip_address returning aswell? iis::sites: * 'Admin':* ip_address: '10.21.40.18' #host_header: 'www.internalapi.co.uk' 'Public': ip_address: '10.21.41.18' 'Assets': ip_add

[Puppet Users] hiera and puppet environments ( directory)

2015-06-19 Thread Helen Paterson
Hi, I'm trying to set-up puppet environment so that our ymal files can usernames and passwords for Production and test ( dq), modules will be the same. I have run through the documentation but am getting the following error: client error Error: Could not retrieve catalog from remote server: E

Re: [Puppet Users] Bug #15326] (Accepted) Scheduled_task does not accept domain user accounts

2015-02-24 Thread Helen Paterson
thank you, completely missed it. On Tuesday, February 24, 2015 at 3:06:34 PM UTC, Josh Cooper wrote: > > > > On Tuesday, February 24, 2015, Helen Paterson > wrote: > >> Hi, >> >> When i add the user attribute to Scheduled_task, the scheduled task is >>

[Puppet Users] Bug #15326] (Accepted) Scheduled_task does not accept domain user accounts

2015-02-24 Thread Helen Paterson
Hi, When i add the user attribute to Scheduled_task, the scheduled task is not created, but if i comment out the user attribute the scheduled task is created running as system. This doesn't seem to work scheduled_task { 'CopyCF11ReposFromDR': ensure => present, enabled

[Puppet Users] run code in a new puppet agent window (windows server)

2015-02-18 Thread Helen Paterson
Hi, I set windows environment variables using puppet, but you must close the puppet agent window and open a new one to be able to use these variables. Can i do this programaticaly ? (i need git use git via puppet but you must set windows env git paths first ) -- You received this message be

Re: [Puppet Users] puppet cloud provisioner - without enterprise -Error: Unknown Puppet subcommand 'node_aws'

2015-02-02 Thread Helen Paterson
tps://docs.puppetlabs.com/pe/latest/cloudprovisioner_configuring.html>l 4. gem install guid 5. apt-get install ruby-fog (didn't need gem install fog) On Monday, February 2, 2015 at 12:59:48 PM UTC, Helen Paterson wrote: > > Hi, > > I upgrade to ubuntu 14 to resolve the ruby er

Re: [Puppet Users] puppet cloud provisioner - without enterprise -Error: Unknown Puppet subcommand 'node_aws'

2015-02-02 Thread Helen Paterson
> /usr/bin/ruby1.8 under the hood, which would explain the ruby version > error you're seeing. > > On Thu, Jan 22, 2015 at 5:20 AM, Helen Paterson > > wrote: > > Hi, > > > > > > > > > > > > Has anyone had any luck getting

[Puppet Users] puppet cloud provisioner - without enterprise -Error: Unknown Puppet subcommand 'node_aws'

2015-01-22 Thread Helen Paterson
Hi, Has anyone had any luck getting the puppet cloud provisioner without the Puppet enterprise ( open source) ? 1. installed puppet module install puppetlabs-cloud_provisioner (from the forge) 2. sudo apt-get install ruby1.9.3 rubygems1.9.1 sudo ln -sf /usr/bin/ruby1.9.3 /

Re: [Puppet Users] hiera lookup , extract one element

2014-12-02 Thread Helen Paterson
ing able to just work with the $sites > hash as well. > > $addr_web1 = $sites['myweb1']['ip_address'] > > Further notes: > 1. Don't pass [] as the default value for a hash lookup. Use {}. > 2. Use hiera_hash() only if you need to merge hash data from

[Puppet Users] hiera lookup , extract one element

2014-11-25 Thread Helen Paterson
Hi, I have the following hiera data in the node definition. I can lookup all the data create_resources('iis::manage_site', hiera_hash('iis::sites', [])) . iis::sites: 'myweb1': site_path: 'D:\Repositories\myweb1\wwwroot' port: '80' ip_address: '192.168.33.21' app_pool: 'ColdFus

[Puppet Users] Re: Permission problems on Windows

2014-09-08 Thread Helen Paterson
You could try if $osfamily == 'windows' { File { source_permissions => ignore } # Puppet defaults to applying the ownership and permissions from the source files.(linux permission) } On Monday, September 1, 2014 6:35:47 PM UTC+1, Armindo Silva wrote: > > Hi, > > I have a zip file that h

[Puppet Users] Windows ACL - multiple account permission -Example

2014-09-08 Thread Helen Paterson
Hi, I am trying to give multiple users modify access to a file. I can give one user access fine: acl { 'D:/Repositories': permissions => [ { identity => 'Administrators', rights => ['full'] }, { identity => 'Users', rights => ['read','execute']

[Puppet Users] file_line match with spaces

2014-08-19 Thread Helen Paterson
Hi, I cannot get the regex to work in puppet for "file_line" it work in a regex tool file_line { "applicationHost.config": ensure => 'present', path=> 'c:/windows/sysnative/inetsrv/config/applicationHost.config', match => '\s{1,12} '',

Re: [Puppet Users] windows groups - append

2014-08-19 Thread Helen Paterson
Hi, The windows agent is running puppet 3.4.2. Thanks for letting me know, its a known issue On Monday, August 11, 2014 9:18:14 PM UTC+1, Rob Reynolds wrote: > > > > > On Mon, Aug 11, 2014 at 3:01 AM, Helen Paterson > wrote: > >> Hi, >> >> I would lik

[Puppet Users] windows groups - append

2014-08-11 Thread Helen Paterson
Hi, I would like puppet to add additional users to the "administrators" group, however it currently replaces the membership ( removing existing users). How can i change this ? class win_local_admin { group { 'Administrators': ensure => present, members => ['Adm

Re: [Puppet Users] puppet dism

2014-05-06 Thread Helen Paterson
> Dism['IIS-HealthAndDiagnostics'], } dism { 'IIS-RequestMonitor': ensure => present, require => Dism['IIS-HealthAndDiagnostics'], } dism { 'IIS-WebServerManagementTools': ensure => present, require => Dism[

Re: [Puppet Users] puppet dism

2014-05-06 Thread Helen Paterson
witch for that particular > feature? The error you are getting indicates it should not be used. > > > On Fri, May 2, 2014 at 10:26 AM, Helen Paterson > > > wrote: > >> Hi, >> >> I'm getting the below error, when using an answer file with the forge &

[Puppet Users] puppet dism

2014-05-02 Thread Helen Paterson
Hi, I'm getting the below error, when using an answer file with the forge puppet dism module Error: Execution of 'C:\Windows\sysnative\Dism.exe /online /Enable-Feature /Fea ureName:IIS-WebServerRole /Apply-Unattend:c:\answer\iis_net.xml /NoRestart' ret rned 87: Deployment Image Servicing an

[Puppet Users] append registry array (REG_MULTI_SZ) with puppet

2014-03-12 Thread Helen Paterson
Hi, When add values to a key using the below puppet code it clears the current values on the server. Is there away to simply append a reg key value ? *class winregistry { registry_value { 'hklm\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\BackConnectionHostNames': ensure =>

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Helen Paterson
ll add rule name=Java dir=in action=allow program='\"${::javahome}\"\\bin\\java.exe' ENABLE=yes\"", refreshonly => true, require => Package ['Java 7 Update 51'], } } site.pp $agenthome ="d:\\buildagen

Re: [Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Helen Paterson
}\jre" > > HTH > > Jo > should do the trick > > On 02/25/2014 10:52 AM, Helen Paterson wrote: > > Hi, > > What is the syntax for install_options containing a variable ? > > This code below works fine,but i'd like to remo

[Puppet Users] install_options =>{$:: variable} -syntax

2014-02-25 Thread Helen Paterson
Hi, What is the syntax for install_options containing a variable ? This code below works fine,but i'd like to remove D:\BuildAgent\jre' and replace it with ${::javahome}, what should the syntax be? install_options => [ '/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0', 'INSTAL

[Puppet Users] Re: handy tip against unhelpful "Could not intern from pson" error

2014-02-24 Thread Helen Paterson
Thank you, this was a great help On Wednesday, August 24, 2011 5:21:21 PM UTC+1, Luke Bigum wrote: > Cheers, that'll teach me to cut and paste ;) > > The second example's resource name should be without quotes, so: > > $service_name = "httpd" > service { $servicename: ensure => running } > e