Displaying 20 results from an estimated 40000 matches similar to: "custom provider question"
2010 Mar 22
3
custom type/provider load error
Hi .*,
with the first puppet run on a freshly installed system all custom
types and providers a synced. As you can see from the output for some
reason puppet tries to load the providers before the types and
therefore the custom provider loads throw an error. It looks like the
load happens alphabetically ordered, such that providers are loaded
before the types...
Anyway the puppet run afterwards
2013 Apr 16
0
How to get return code of a command used in a custom provider.
When using optional_commands in a custom provider is there a means to get
the return code of the execution? Something similar to "echo $?" on Linux.
For example, if I define foo
optional_commands :foo => ''foo''
I want to execute foo() and test if it was successful or not with in some
conditional logic.
--
You received this message because you are subscribed to
2013 Feb 27
1
puppet openstack - missing quantum module
Hello,
I was very thrilled when I found openstack module since I am in
the process of doing some "heavy" testing
However I was not able to use it due to the "Could not find declared class
quantum::db::mysql" error
There is no quantum module available as part of the openstack module
installation
Here is a directory listing:
ls /etc/puppet/modules
apache apt cinder
2013 Jul 13
10
username/password combo for custom provider (couchbase)
Hi,
I''m trying to program custom type for managing Couchbase buckets.
Problem is that every RW operation to Couchbase cluster (creating,
deleting, resizing bucket) requires admin privileges (username/password).
Do you have any suggestion how should I pass the username/password to
provider? If I make it a param, then every resource of type
''couchbucket'' will need to
2009 Dec 14
4
Provider Augeas not functional on Sles10?
Hi,
I have a problem with augeas, puppet and Suse 10 SP2.
Augeas works when I use the augtool to edit files. But I would like to
use it in combination with puppet. My class looks something like this:
augeas {"sysctl.conf":
provider => "augeas",
context => "/files/etc/sysctl.conf",
changes => [
"set
2012 Jul 31
2
Custom Package Provider Issue
I''m running into a weird issue with a custom package provider for PEAR. I''m
using the provider I found here<https://raw.github.com/gist/305778/13f46dea6eba07e38778d7159644b4210ebe7bbe/pear.rb>and the provider itself works fine. I''ve got it stored on the Puppet master
under /etc/puppet/modules/common/lib/provider/package/pear.rb and the
puppet.conf has pluginsync
2013 Mar 20
2
Still problem using Chocolatey provider on Windows
As some before me on the group, I have a problem getting the Chocolatey
provider to work on Windows.
I downloaded it from Github and placed it in
/etc/puppetlabs/puppet/modules/chocolatey. (I am running Puppet Enterprise
2.7.19).
On a Windows 8 client, I have a very simple manifest:
class install_notepadplusplus {
if $::osfamily == ''windows {
$pkg =
2013 Aug 05
3
serving .exe file via http (provider => windows)
hi everyone, i''m trying to roll out an .exe file for the puppet package
provider "windows".
my manifest looks like this:
$package_source = "http://puppet.local.domain/base_check_mk/windows/check-mk-agent-1.2.3i1.exe"
$package_name = "Check_MK Agent 1.2.3i1"
package { "$package_name":
ensure => installed,
provider =>
2013 Sep 17
1
Run a custom function through the ruby debugger
Hallo,
I''m developing a custom function that is exhibiting some odd behavior, so I
would like to debug it.
How do I load it in the ruby shell in a way that lets me execute it?
I have tried the steps on the documentation:
irb(main):001:0> require ''puppet''
>
> => true
>
> irb(main):002:0> require ''phash2text.rb''
>
> =>
2013 Mar 07
1
HELP:Custom function didn't work
hi,guys-
I have a mysql database which stores host informations,so I wrote a
function to get some values.
- Here is the function rb(this function should return the type I defined
in the database):
#hosttype.rb
require "mysql"
module Puppet::Parser::Functions
newfunction(:hosttype, :type => :rvalue, :doc => "Gets host type from
db.") do |args|
2013 Oct 26
1
Puppet 3.3.1: custom function change requires restart of puppetmaster
Hi!
I''ve spent quite a while before I understood that for Puppet to see changes in custom functions'' code Puppetmaster needs to be restarted.
Is this a normal behaviour or may be it''s a bug ?
--
Best regards,
Sergey Arlashin
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and
2013 May 14
2
puppet and custom nagios object variables
Nagios support "custom object variables" (http://nagios.sourceforge.net/docs/nagioscore/3/en/customobjectvars.html) buy prefixing them with an underscore:
define host{
host_name linuxserver
_mac_address 00:06:5B:A6:AD:AA
_rack_number R32
}
However, I can''t determine how to use these with puppet nagios resources. I''m assuming they aren''t supported, but
2013 Nov 04
0
brainstorm ldap type/provider
hi,
Just thinking how i could manage ldap server with puppet, using dynamic
configuration.
I would follow the next step :
In the manifest :
install required packages for ldap server
doing a ''site specific'' basic configuration, meaning pushing a custon
/etc/<ldapbasedir>/slapd.d
develop some ldap type, to tweak online the ldap server. I think this
would only be used
2012 Aug 28
4
using puppet augeas to add entry in /etc/syslog.conf
Hi ,
I"m trying to add a entry in /etc/syslog.conf using puppet augeas like
this " *.warning;mail.none;authpriv.none;cron.none
@syslog_host" ,
seems the way to do this with augeas is :
augeas { "syslog_conf":
lens => "syslog.lns",
incl => "/etc/syslog.conf",
2013 Jun 24
1
Deprecation notice on custom type?
Deprecation notice: Resource references should now be capitalized on
line 101 in file /etc/puppet/manifests/templates/basenode.pp
This is the specific line of code:
realize (users::useraccount[hiera(''users'')])
When I capitalize Users, I get the following error:
Error 400 on SERVER: Could not parse for environment production: Syntax
error at
2013 Apr 05
2
Flush provider - Differentiating between new resource and modification?
Morning all
I''m working on converting some of my NetApp providers to prefetch/flush
style to try and optimize performance.
I''ve hit an issue on my Netapp_user provider, around handling resource
creation versus resource modification?
What''s the easiest way to differentiate?
Current code is here:
2013 Sep 10
0
vcsrepo: "Error 400 on Server: Invalid parameter provider"
With custom type ''vcsrepo'', I''ve been getting this error ever since I
restarted my master box:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter provider at
/etc/puppet/environments/local/modules/user_mpeebles/manifests/init.pp:56
on node 1001.milespeebles.org
Warning: Not using cache on failed catalog
Error: Could not
2013 Mar 11
3
custom puppet facts
I have written a custom puppet fact using a ruby script. It is very simple
- it just adds a string to a fact. However I have written a module but it
appears to me that the custom fact has been applied to all my machines
without me specifying any node definitions. When I run a puppet agent
--test --noop, I see the custom fact appear in /var/lib/puppet/lib/facter.
Info: Loading facts in
2013 Mar 15
0
New LDAP puppet provider using ldapmodify, ldapadd, ldapdelete etc.
Hi all,
I use openldap and it''s newer slapd.d style of housing the configuration
(as opposed to /etc/openldap/slapd.conf ).
As such, to modify the config, the database itself, I''d prefer to use
ldapmodify and ldapadd commands.
I couldn''t find an existing ldap provider to nicely manage database entries
(DNs), so I wrote one.
It essentially does this:
-
2013 Oct 21
3
how to pass the value to custom function?
Dear all,
I''m trying this thing for a while but can''t figure out what am I doing
wrong.
Here is my sample function (which is similar to the original one, except
for the hash, which is generated dynamically in the original one):
module Puppet::Parser::Functions
> newfunction(:am_running_oss, :type => :rvalue ) do |args|
>
> oss =