Questions tagged [template]

69 questions
2
votes
1 answer

Building a properties file with Ansible where the Property should not be added if the value doesn't exist

I am trying to build a property file with mandatory and optional properties in Ansible with templating. I want each essentially-static string (each optional property name) to show up only if the associated property value exists (from an Ansible…
Ryan
  • 65
  • 2
  • 7
2
votes
1 answer

Deleting Xenserver Virtual Machine used for Template

I created a custom Windows VM in Xenserver 6.5. I took a snapshot and used the snapshot to create a template that can be used for future reference. Is it possible to delete the VM I used to create the template or will that impact my ability to use…
jrd1989
  • 698
  • 15
  • 48
2
votes
3 answers

how can I create a server template to spawn new servers?

I have a couple of LAMP servers (on a VMware ESXi host) for projects built on top of the CodeIgniter PHP framework. To mimic the original dev server installation I set up those 2nd and 3rd servers by manually installing Ubuntu Server then packages…
crashintoty
  • 261
  • 1
  • 4
  • 11
2
votes
1 answer

Need to know how to change ip address and hostname after deploying OVF template

In ESX, I export OVF of my VM (configured as dhcp). Then In another ESX, I use "deploy OVF template" from file menu. My new VM appears working, except I could not change the IP address and hostname. VM: GuestOS: CentOS5.4 + my application In the new…
Helen
  • 21
  • 1
  • 2
2
votes
2 answers

use local file as puppet template

I'm developer of a java software and try to find a smart way to get my app distributed and configured in our datacenter. For that, I build an rpm package and we have set up a satellite. Target OS is Red Hat Enterprise. For configuration management…
mkraemerx
  • 123
  • 4
2
votes
2 answers

How do I specify in an AWS Cloudformation template that my t1.micro instances are 64-bit architecture

I am attempting to write my first cloudformation template. I am basing it on the ELB example. In my case I will have 64-bit instances only, t1.micro sized. However I cannot see where to specify that my instance requires 64-bit architecture in the…
2
votes
2 answers

Proxmox & Packer: VM quit/powerdown failed during a Packer build. Anyone have any ideas why?

I am trying to create a Proxmox VM template using Packer. However I am getting a Proxmox error saying Build 'proxmox' errored: Error converting VM to template, could not stop: VM quit/powerdown failed - got timeout. According to the Proxmox GUI, the…
Eddingston
  • 21
  • 2
1
vote
1 answer

Templated dict keys in ansible YAML

I am trying to use a dict in an Ansible task, which is defined like this: in vars/main.yml file: username: user1 userpass: pass1 users: "{{ username }}": pass: "{{ userpass }}" This doesn't work in Ansible 2.9: Ansible seems to not…
1
vote
1 answer

How to fix SolusVM Xen-Hvm template error at creation?

The following log contains an error which happens while executing the template creation script on a SolusVM powered CentOS 6 server. CREATING MBR IMAGE... 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.00333337 s, 154 kB/s MAPPING…
1
vote
0 answers

vSphere Customization Specification and Ubuntu 17.10

Has anyone noticed issues with #vSphere Customization Specification and #Ubuntu 17.10 (GNU/Linux 4.13.0-25-generic x86_64) – Now that the network settings are located in: /etc/netplan/01-netcfg.yaml, I’m back to manually updating IP information…
1
vote
0 answers

Application to import GPO templates into Group Policy Management

I'm trying to find an application that I can load my GPO backups from DomainOne then add some replaces to it such as Find DomainOne -> Replace with DomainTwo. Then click some type of Import button and it auto replace text and then import all my…
1
vote
1 answer

Is there a more idiomatic way to switch Salt state based on host OS?

At the top of my State file, I have: {% if grains['os'] == 'Ubuntu' %} {% set ubuntu = True %} {% set arch = False %} {% elif grains['os'] == 'Arch' %} {% set ubuntu = False %} {% set arch = True %} {% endif %} Later on, {% if ubuntu…
Chris Tonkinson
  • 475
  • 2
  • 6
  • 19
1
vote
2 answers

Managing ~/.ssh/config for users using puppet?

How do I adjust the "User" line in a ~/.ssh/config file using ERB template files in Puppet so that it contains the correct username that matches the account name? class accounts_global::tharold { account { 'tharold': ensure => present, …
tgharold
  • 609
  • 8
  • 19
1
vote
1 answer

puppet: file, template and variables

I'm trying to create a file based on templates, but I'm getting an error that the template(s) cannot be found. My directory setup is /etc/puppet/modules//templates/ Under templates, if have a directory for each host, plus a common template. Under…
Todd Strauch
  • 11
  • 1
  • 2
1
vote
2 answers

Custom Certificate Template is listed as unavailable

I am trying to create a custom certificate template based off of the Smartcard User template with a Windows Server 2008 Enterprise subordinate CA. I am using the subordinate CA because the root CA is not on the domain. Here are my steps so far: I…
nedwards86
  • 63
  • 1
  • 1
  • 7