Displaying 20 results from an estimated 17669 matches for "ensure".
2008 Feb 20
2
purging unmanaged cron
Should this work?
# --- remove any cronjobs that are not managed by puppet.
resources { "cron": purge => true }
I get the following error.
Resources[cron]: Failed to generate additional resources: You must
specify a title for objects of type Puppet::Type::Cron
Ben
2007 Jan 26
1
directory, effect of recurse with ensure => directory
...rs:
file { "base_admin":
path => "/my/dir"
owner => ''root'',
group => www-data,
recurse => true,
ensure => directory,
mode => 640
}
problem:
debug: //myserver/sourcedir/File[/var/www/base_admin/server_sql.php]: Changing ensure
debug: //myserver/sourcedir/File[/var/www/base_admin/server_sql.php]: 1 change(s)
debug: //myserver/sourcedir/File[/var/www/base_admin/serve...
2013 Mar 26
1
Can't convert Puppet::Util::Log into Integer
...h
Agents:
Red Hat Enterprise Linux Server release 6.3
puppet-3.1.0-1.el6.noarch
[root@somvat121892 ~]# puppet agent --test --verbose --debug
Debug: Using settings: adding file resource ''lastrunfile'':
''File[/var/lib/puppet/state/last_run_summary.yaml]{:links=>:follow,
:ensure=>:file, :backup=>false, :mode=>"644",
:path=>"/var/lib/puppet/state/last_run_summary.yaml", :loglevel=>:debug}''
Debug: Failed to load library ''ldap'' for feature ''ldap''
Debug: Puppet::Type::User::ProviderLdap: feature ld...
2011 Dec 10
5
create user and push out keys.
Hello
Im just been working with puppet, the first usecase i have is to set
up a system to create users and then push ssh keys on this machines in
the create users .ssh files. I just started with puppet so i am a bit
cluesless, Can someone push me in the right direction?
Im having a centos enviorment.
--
You received this message because you are subscribed to the Google Groups "Puppet
2008 Jun 06
8
useradd provider not working?
I have this config:
# BL00070 - Disable NFS
service {["nfs","nfslock","netfs","portmap"]:
ensure => stopped,
enable => false,
}
user {"rpc": ensure => absent, provider => "useradd" }
user {"rpcuser": ensure => absent, provider => "useradd" }
file {"/etc/imports": ensure => absent }
file {"/e...
2012 Mar 14
10
permission denied errors on /var/lib/puppet stuff during puppetd -t
I''m suddenly getting the below errors from Rack during puppetd -t
(excerpted from the pink HTML output and cleaned for readability):
Could not prepare for execution: Got 10 failure(s) while initializing:
change from absent to directory failed: Could not set ''directory on ensure:
Permission denied - /var/lib/puppet/yaml;
change from absent to directory failed: Could not set ''directory on ensure:
Permission denied - /var/lib/puppet/rrd;
change from absent to directory failed: Could not set ''directory on ensure:
Permission denied - /var/lib/puppet/reports;...
2012 Oct 03
5
is_virtual selector
...3.0. Clients and PuppetMaster are now
at 3.0.0. Not sure if this is a version change or syntax error that I am
experiencing. We''ll use ''ntp'' as the example and the "build" host is a VM.
The old way:
class baseline::ntpd {
package { "ntp":
ensure => $virtual ? {
physical => present,
vmware => purged,
default => present
}
}
On the client, it always says that it is created, even though it''s not
present:
[root@build ~]# puppet agent -tv
Info: Retrieving plugin
Info: Caching catalog for bui...
2013 Mar 26
0
Solved: Can't convert Puppet::Util::Log into Integer
...>> puppet-3.1.0-1.el6.noarch
>>
>> [root@somvat121892 ~]# puppet agent --test --verbose --debug
>> Debug: Using settings: adding file resource ''lastrunfile'':
>> ''File[/var/lib/puppet/state/last_run_summary.yaml]{:links=>:follow,
>> :ensure=>:file, :backup=>false, :mode=>"644",
>> :path=>"/var/lib/puppet/state/last_run_summary.yaml", :loglevel=>:debug}''
>> Debug: Failed to load library ''ldap'' for feature ''ldap''
>> Debug: Puppet::Type::Use...
2013 Oct 13
2
LAMP stack with strange dependencies
...ave the following:
> node default {
>
> # This is where you can declare classes for all nodes.
>
> # Example:
>
> # class { ''my_class'': }
>
> # class { ''lamp'': }
>
> package {''php'':
>
> ensure => present,
>
> before => File[''/etc/php.ini''],
>
> }
>
>
>> file {''/etc/php.ini'':
>
> ensure => file,
>
> }
>
>
>> package {''httpd'':
>
> ensure => pre...
2013 Aug 30
1
Could not find certificate Error: header too long
...e: file /usr/bin/dsimport
does not exist
Debug: /User[puppet]: Provider useradd does not support features libuser;
not managing attribute forcelocal
Debug: Using settings: adding file resource ''localcacert'':
''File[/var/lib/puppet/ssl/certs/ca.pem]{:links=>:follow,
:ensure=>:fi le, :backup=>false, :owner=>"puppet",
:mode=>"644", :loglevel=>:debug, :path=>"/var/lib/puppet/ssl/certs/ca.pem"}''
Debug: Using settings: adding file resource ''vardir'':
''File[/var/lib/puppet]{:li...
2007 Feb 01
5
Interesting interaction between source and ensure in file definition in function...
Given the following:
file { "/my/file":
source => "puppet://server/path/to/some/file",
ensure => absent
}
Puppet will copy /my/file to the host.
What I was hoping was that ensure => absent would trump a source file.
However, if we change the above slightly like this:
file { "/my/file":
source => "puppet://server/no/such/file",
ensure => absen...
2013 Aug 06
7
Puppet first run timing out
...''m working on deploying Puppet to our environment and after reinstalling
some nodes, I run Puppet for the first time. It appears to be updating some
Puppet specific files (see below), and then times out with the error:
"Error: /File[/var/lib/puppet/lib/facter/ip6tables_version.rb]/ensure:
change from absent to file failed: execution expired Error: Could not
retrieve plugin: execution expired".
The file it errors on varies, depending on how many times the agent has
run. Once I run Puppet a few times to get all the updates, and applies all
my configs fine. All my DNS setti...
2011 Mar 14
1
configsync requires 2nd puppet run for plugin loading to work
...ort:
err: /Stage[main]/Ibe::Slave/Logical_volume[mysql]: Could not
evaluate: No ability to determine if logical_volume exists
1st run:
The longer version:
[root@data04 ~]# puppet agent --test --verbose
[69/4012]
info: Retrieving plugin
notice: /File[/var/lib/puppet/lib/puppet/provider]/ensure: created
notice: /File[/var/lib/puppet/lib/puppet/provider/filesystem]/ensure: created
notice: /File[/var/lib/puppet/lib/puppet/provider/filesystem/lvm.rb]/ensure:
defined content as ''{md5}600dde93687bae8db137d5e84ff05e04''
notice: /File[/var/lib/puppet/lib/puppet/provider/logical_...
2007 Jan 25
3
Usability concern with overrides
I''ve been tinkering around with managing users and am concerned with the
overall administrative usability of the inheritance overrides.
For instance, the user games:
redhat_base:
user { games: ensure => present }
local_site inherits redhat_base:
User[games] { ensure => absent }
This is fine, but imagine a few levels of nesting later with an admin that
wants to ensure that a user is absent that isn''t defined higher up and also
ensure that games is absent.
example inherits loca...
2013 Apr 03
1
Using single hiera hash for two create_resources, and mounting filesystems
...points using 3.1.1)
My plan was to define create_mount_points and use create_resources with the
same hash, and just though away what I dont use.... maybe there is a
better means?
Here is the mount class:
class fstab::mounts ( $config = undef ) {
$defaults = {
atboot => true,
ensure => ''mounted'',
}
$hiera_config = hiera_hash(''fstab::mounts'', undef)
if $hiera_config {
create_resources(fstab::create_mount_points, $hiera_config )
create_resources(mount, $hiera_config, $defaults)
}
}
the define
define fstab::create_mou...
2011 Jul 12
4
Possible bug? Can't remove and then put back a file?
This happens to Puppet 2.7.1 (both master and client). I have a file
resource that I set to ensure => absent, Puppet removed it correctly
with info line that it has a duplicate entry in the filebucket. I then
changed the ensure => present, the agent run gave me following error:
/usr/bin/puppet:19
err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/ensure:
change fro...
2011 Jun 17
5
ssh_authorized_key and NIS user
...vice[''nis''],
}
This nagios user comes from NIS, yp.conf and nsswitch.conf are handled by puppet
and configured before the key. I still get an "User does not exist".
daemon.log:
...
Jun 17 14:00:57 node016 puppet-agent[1109]:
(/Stage[main]/All/File[/localhome/nagios/]/ensure) created
Jun 17 14:12:53 node016 puppet-agent[1109]:
(/Stage[main]//Ssh_authorized_key[root@node002]/ensure) created
Jun 17 14:15:14 node016 puppet-agent[1109]:
(/Stage[main]//File[/etc/idmapd.conf]/content) content changed
''{md5}3e94f238294cc61b047e7ae50115dffc'' to ''{...
2011 Jan 21
6
help writing types/provider
...ovider is just a wrapper around the ''rabbitmqctl''
command.
Have a feeling there''s a developer guide somewhere I haven''t found
(been working from the puppetlabs site and @kartars blog).
Couple of basic questions:
1. how can I set the type to default to ''ensure => present, isadmin =>
false'' ?
Not sure if the ensurable mechanism is causing the first to be hard,
but I can''t see a way to set defaults in general
2. is there a way to mark attributes as required?
I''ve provided a validation for the initial_password para...
2007 Apr 13
2
puppet reporting an older version installation
Hello all,
I have puppet rpm on internal repository for updating it to servers that
don''t have it on their normal repos (Centos, Fedora Core 4 or older...)
Then I have this to ensure that puppet is at latest version:
package { "puppet":
ensure => latest,
provider => yum,
}
I added puppet 0.22.3 to my internal repository and all servers updated
to that version, but I''m receiving reports like this:
ensure changed ''0.22.3-1'' to...
2007 Aug 16
0
No subject
...Users_account["user1"],
Users_account["user2"],
Users_account["admin1"],
Users_account["admin2"],
Users_account["admin3"],
)
}
class users_all_virt {
$homefs = "/home"
file { $homefs:
ensure => directory,
owner => "root",
group => "root",
mode => 2755
}
@users_account { "user1":
ensure => "present",
uid => "500",
pgroup => "users",...