Questions tagged [templates]
41 questions
10
votes
1 answer
What is the recommended method to prepare Red Hat/CentOS 7 templates?
If I need to deploy Red Hat 7 from template, I would like to take the recommended steps to make my "golden image" clean. It should boot to the first boot prompt and guide the user through the typical steps.
In Red Hat 5/6, I followed the…
Aaron Copley
- 12,345
- 5
- 46
- 67
7
votes
2 answers
Why does "eager" vs "lazy" zeroing take much longer when provisioning a VM from a template?
Slightly related to a previous question about thick vs thin provisioning, why does eager zeroing the to-be-cloned VM take longer than lazy zeroing?
For example, in a recent test we ran, an eager-zeroed clone took ~85 minutes to complete, whereas…
warren
- 17,829
- 23
- 82
- 134
7
votes
1 answer
Puppet and templates : how to loop sequently and not randomly
See my node's configuration:
$property_name = {
"unit_1" => { host => [ "dns_name1/192.168.0.1/25" ,"dns_name2/192.168.0.2/25" ]
},
"unit_2" => { host => [ "dns_name3/192.168.0.3/25", "dns_name4/192.168.0.4/25" ]
…
Richi16
- 73
- 3
6
votes
2 answers
puppet and array loop
Hi I'd like some help on how to code this in erb in puppet, basically I have
server::actionhost { 'details':
servername[ 'felix', 'washington', ],
ipa [ '192.168.43.5', '192.168.43.11', ],
enviro [ 'prod', 'uat', ],
}
I now want to…
Dan
- 357
- 3
- 4
- 16
5
votes
1 answer
Puppet: Referencing variables from a define in a template
I have the following class and definition in puppet:
$certDirectory = "/var/lib/ssl/certs"
class openssl {
package { "openssl":
ensure => latest
}
file { "openssl":
path => "/var/lib/ssl",
ensure => directory,
mode => 0644
…
gnarf
- 713
- 3
- 8
- 21
5
votes
4 answers
How to use current cookbook template dir to copy all templates recursively in a loop with chef
I'm trying to figure out how can I construct the path to templates (or files, since it works the same way) folder, then I could read it and use template resource in the loop, so each template file could trigger notification on change.
I can't use…
gansbrest
- 785
- 1
- 8
- 17
4
votes
2 answers
Puppet concatenate templates
In the module I'm currently working on, I got a load of configuration options that need to be set, have default values ... and should be fragmented into shorter template files as else it would be a scrolling nightmare.
The recommended way to do so…
kaiser
- 1,251
- 1
- 16
- 24
4
votes
1 answer
Modifying Word's Normal template company-wide
We use Word 2003 on all computers; we also use Group Policy to set a shared "workgroup templates" folder, which is really useful as we can just copy .DOT files into there to make them accessible to all users.
We have a company policy that all…
Keith Williams
- 243
- 2
- 6
4
votes
2 answers
Network Incident Report Template
I'm looking for a network incident report template.
Is there any template that you use in your company?
Andre
- 1,333
- 4
- 18
- 31
3
votes
2 answers
Puppet: how to use data from a MySQL table in Puppet 3.0 templates?
I have some data whose source-of-truth is in a MySQL database, size is expected to max out at the some-thousands-rows range (in a worst-case scenario) and I'd like to use puppet to configure files on some servers with that data (mostly iterating…
Luke404
- 5,708
- 3
- 44
- 58
3
votes
1 answer
Puppet templates and undefined/nil variables
I often want to include default values in Puppet templates. I was hoping that given a class like this:
class myclass ($a_variable=undef) {
file { '/tmp/myfile':
content => template('myclass/myfile.erb'),
}
}
I could make a template like…
larsks
- 41,276
- 13
- 117
- 170
3
votes
2 answers
How to create templates in vmware esx 6.7
In the esx 6.7 version, there is no template creation option.
I tried this link, but no options available as shown.
This is for creating templates, these options also not visible. Please suggest. FYI, I am using the root account and it is a licensed…
Uday Kiran Reddy
- 109
- 1
- 2
- 12
2
votes
1 answer
Copy entire template folder from puppet module
I'm looking for the syntax to copy an entire templates directory inside a puppet module. (Eg: templates/webconfig/file1.erb, templates/webconfig/config/file2.erb)
I tried to copy in below syntax:
file {"$http_home_dir/webconfig":
…
Satheesh
- 123
- 5
2
votes
2 answers
Foreman: How to test/render provisioning templates
I have installed Foreman in a test VM and I want to create some custom kickstart files. I understand that Foreman renders the templates during the host creation. But in case of an error, type, variable that is missing etc, the installation fails.…
Peter
- 802
- 2
- 10
- 23
2
votes
2 answers
Can you setup Outlook 2007 templates?
We use the same template in Word 2007 for all the employees.
When I setup a new user, I just take a copy from the server and paste it into his Application/Microsoft/Templates folder - replacing the standard.
When there needs to be a change, I change…
caspert
- 683
- 2
- 11
- 18