Another dumb question, but I can't find what I'm looking for. Does
Puppet have a function that's equivalent to the substr() function in
Perl? I want to truncate arbitrary strings to 7 chars but I can't see
how to do this with any of the built-in functions or functions in stdlib.
e.g. substr('h
I assume that you can use the sprintf function (from Puppet core).
sprintf("%20.8s", "string test") #=> "string t"
On 04 Sep 2014, at 11:19, Jonathan Gazeley
wrote:
> Another dumb question, but I can't find what I'm looking for. Does Puppet
> have a function that's equivalent to t
Apparently it is also possible with regsubst, like this:
regsubst($hostname, '^(.{7})(.*)', '\1')
On 04/09/14 10:28, Martin Alfke wrote:
I assume that you can use the sprintf function (from Puppet core).
sprintf("%20.8s", "string test") #=> "string t"
On 04 Sep 2014, at 11:19, Jon
Hello
I hit a similar issue but took a hackish way out. I now have a script
convert my yaml to a file full of virtual resources.
Its a bit yuck but compile time is much better.
Neil
On 3 Sep 2014 21:07, "Trevor Vaughan" wrote:
> Honestly, if you have a large number of accounts, I would go with
http://www.meetup.com/Delhi-Puppet/
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web
On Wednesday, September 3, 2014 3:49:22 PM UTC-5, Balasubramaniam Natarajan
wrote:
>
>
>
>
> On Tue, Sep 2, 2014 at 10:08 PM, Wil Cooley > wrote:
>
>>
>> No, recurse is only useful for copying directory to directory.
>>
>> What are you going to accomplish? Copying a source directory of symlink
On Wednesday, September 3, 2014 1:09:38 PM UTC-5, Juliano Resende wrote:
>
> Hi Folks,
>
> I have a doubt about call classes multiple times, i write a module to
> manage FTP users, but i can create only one user, because when i call the a
> second time i receive a error about duplicate instance
On Wednesday, September 3, 2014 9:05:20 AM UTC-5, Atom Powers wrote:
>
> You may need to define local versions of them that equal the param or
> default to the param.
>
> $var = $::class::params::var
>
>
Note that the point of the pattern of inheriting params classes is only to
ensure that the
On Wednesday, September 3, 2014 7:08:10 AM UTC-5, PorridgeBear wrote:
>
> With a very basic declaration for MySQL Server:
>
> class { '::mysql::server':
> root_password=> 'foobar',
> override_options => { 'mysqld' => { 'max_connections' => '150' } }
> }
>
> I am receiving a number
On Wednesday, September 3, 2014 11:32:54 AM UTC-5, Khoury wrote:
>
> Sorry for the delay Felix. Here's a specific example of a situation where
> the fact might return what I would consider useless information and I would
> want to revert back to a the value set previously:
>
> On OS X you can h
Just in case anybody come across this post, I've used the following
successfully:
require 'facter'
Facter.add('host_role') do
setcode do
location = case Facter.value(:hostname)
when /home/ then $&
else 'unknown'
end
Q%[This is a #{location} server]
end
end
I'm sur
On Wednesday, September 3, 2014 4:10:11 PM UTC-5, Tamás PAPP wrote:
>
>
> On 09/03/2014 08:20 PM, jcbollinger wrote:
>
>
>
> There are several viable solutions. I would favor putting your users and
> groups under management, and keeping (user, group) relationships in your
> external data.
On Mon, Sep 01, 2014 at 12:34:50PM +0530, Sirtaj Singh Kang wrote:
>
> On Monday 01 September 2014 05:39 AM, Atom Powers wrote:
> >Poli, that doesn't really solve the problem since the variable
> >values could still come from many places. (Puppet also does some
> >of that lookup automatically, alt
H Guys,
I'm kind of new to puppet and programming I've made a few simpler modules
so far but i'm trying to expand and build them better and i think i'm
hitting my "i don't get programming logic bar".
For example i'm trying to build a module that will take parameters such as
php_version=varia
On Thu, Sep 04, 2014 at 11:06:44AM -0700, Bogdan Baba wrote:
>H Guys,
>I'm kind of new to puppet and programming I've made a few simpler modules
>so far but i'm trying to expand and build them better and i think i'm
>hitting my "i don't get programming logic bar".
>For example
Puppet 3.7.0 is a backward-compatible features and fixes release in the Puppet
3 series. The biggest things in this release are:
* A nearly-final implementation of the Puppet 4 language
* Preview support for a new, fast, natively compiled Facter
* 64-bit Puppet packages fo
Hi,
The files where in the proper places i don't think my include was working i
changed it to inherit and works great installs exactly what i want.
class php::install inherits php::params {
$packlist = [ "$package_prefix", "$package_prefix-gd",
"$package_prefix-pear", "$package_prefix-de
Greetings,
I have a class for which I would like to simply print a few parameters
about a node, before actually running any additional modules on the client
itself. The problem I'm seeing is that after making changes to the class,
I don't see them being propagated to the puppet client. Occasi
I've got some beaker tests working with Vagrant, and now onto the vCloud
challenge.
The vCloud settings seem a bit confusing to me. I've integrated only
briefly against the http API for vCloud, and these settings of "datastore"
"resourcepool" and "folder" seem to be vSphere specific.
I'm on
Hi,
i searched quite a bit in the documentations and through google but did not
find a suitable solution.
I am using the file resource to change the ownership of a directory
recursively. What happens is that for every single file a notice is
generated for change of user and of group. Since I'm
On Thu, Sep 4, 2014 at 1:19 PM, Constantin Wolber <
constantin.wol...@gmail.com> wrote:
>
> i searched quite a bit in the documentations and through google but did
> not find a suitable solution.
>
> I am using the file resource to change the ownership of a directory
> recursively. What happens is
Hi Brett,
The vCloud settings seem a bit confusing to me. I've integrated only
> briefly against the http API for vCloud, and these settings of "datastore"
> "resourcepool" and "folder" seem to be vSphere specific.
First of all, I'm obliged to point out that "vCloud" is a misnomer here --
it
You might want to file a bug, as this was supposed to be fixed in Puppet 2.7
http://projects.puppetlabs.com/issues/5318
On Thursday, September 4, 2014 3:28:10 PM UTC-4, Mike Reed wrote:
>
> Greetings,
>
> I have a class for which I would like to simply print a few parameters
> about a node, bef
Thanks Scott,
Yes very helpful. Unfortunately I'm not sure if I'll be able to get the
right access to our vSphere. I only have a vOrg in vCloud to play with.
I saw a video from Hunter (hunner), where there's a video
(http://club.black.co.at/log/posts/2014-05-24-beaker/) and at the 39th
min
The few times I've had to do things like this (like pulling information
from a physical inventory database to find the rack a host is in, for
monitoring) I've just cached the fact value on disk, usually using some
sort of mtime-based TTL. That being said, I've only done this for facts
that are "opt
FWIW,
1) for logging, we use ELK. We tried Splunk... the quote they gave us was
somewhere around our entire annual software budget. Also, it's closed
source.
2) We don't do anything with logs, aside from the few times we need to
manually confirm something. We rely on reports (PuppetBoard, and som
Agreed with Atom...
I generally think that this method is backwards. The system shouldn't tell
Puppet what it wants to be; Puppet (possibly fed by some external data
source(s)) should tell the system what to be. Sure, in some very large
environments with a small number of possible configurations,
There's at least one open issue for this,
https://tickets.puppetlabs.com/browse/PUP-1376
It doesn't appear to have much interest, so I doubt it will get much
attention.
-Jason
On Thu, Aug 14, 2014 at 6:25 AM, Maciek Jackowski
wrote:
> is it possible to run agent with negated tag?
> for example
Two things that I've come across that help this situation:
- for new modules, rspec tests
- for existing modules, https://github.com/ripienaar/puppet-catalog-diff -
I generate a catalog with the new and old branch, then diff them
On Fri, Aug 22, 2014 at 9:34 AM, Martin Langhoff
wrote:
> For con
I have a hacked together class that somebody else wrote based on some
wikimedia puppet scripts. I've been asked to set the JAVA_HEAP_MAX if the
host is a resource manager.
I'm trying to set the variable yarn_env_java_heap_max if the host is a rm.
Is it possible to set the paramater as below? Do
Admittedly I haven't. I didn't really want to go chasing after something
that has an established practice/pattern or is for some reason a bad idea.
I assumed Facter.value would pull from a cache of some sort, but clearly
that was just a speculative fantasy on my part. If it computes it each time
F
31 matches
Mail list logo