Displaying 5 results from an estimated 5 matches for "puppetdir".
2007 Mar 07
8
Writing definitions to support changing defaults
What is the right way to write definition so that defaults can be overriden?
$puppetdir = "puppet://$server/files"
define remotefile($source, $owner = "root", $group = "root", $mode =
0644, $backup = false, $recurse = false) {
file { $name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,...
2007 Sep 24
3
conceptual problem deploying git repos to a puppetmaster
...ire => Exec["clone-repo-${name}"],
}
}
}
}
}
Then I call it like this: (for my puppetmaster in this case)
git::repo { $puppet_modules:
src => "${gitserver}",
dst => "${puppetdir}/modules/main/",
use_names => true,
}
where:
$puppet_modules = [ ''puppet'', ''ssh'', ''apache'', ... ] # and so on listing
out all my modules
This works great, no problems, in my yaml I can define a list of modules
th...
2007 Jan 10
9
Definition specialization
There was a discussion a while ago about adding inheritance to
definitions. There is a need for a way to specialize parameters while
allowing passing other options. This comes up with remotefile where
it would be nice to have a default server location but not specify all
the parameters (and their defaults) in the definition.
Was there a change to the syntax? Is there a way to accomplish this?
2013 Jun 27
5
Is it possible to pass extra flags to Puppet via rspec?`
Hello,
I''m writing my first puppet function rspec test and am having a problem
which I don''t see how to solve.
The function (and the test) involve access to files through the File
Server. In order for the function (and the test) to work I need to pass
"--fileserverconf=fileserver.conf" parameter to Puppet.
So far I haven''t found a way to do that.
If I
2007 Nov 06
4
strange behavior from purge
I have the following define...
define puppet::module_dir {
if $name {
include puppet
file { "${puppetdir}/modules/${name}":
ensure => directory,
mode => 0755,
purge => true,
recurse => true,
}
}
}
I call it like so:
puppet::module_dir { "main" }
puppet::module_dir { "dev" }
...
the...