Questions tagged [template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Rsyslog storing only certain type of events in a file

I am collecting TM Deepsecurity events on my syslog server. The TM manager sends logs to my syslog server on port 514. There are two types of events TM sends. Deep Security Agent & Deep ...
Nav's user avatar
  • 1
3 votes
1 answer
3k views

How to handle network changes and restart with Ansible?

I'm currently developping a network configuration role used by Ansible to customize our fresh new virtual machine that came from our Debian 11 template. The following role changes from DHCP to static ...
motorbass's user avatar
  • 353
1 vote
1 answer
490 views

ip xfrm policy template missmatch error (XfrmInTmplMismatch)

I am working in a very simple case for ipsec and I keep getting XfrmInTmplMismatch error in reception (after decapsulating the ESP packet) when checking cat /proc/net/xfrm_stat. nft monitor all shows ...
Leonardo Bergesio's user avatar
1 vote
1 answer
8k views

Ansible: Loop over template with related variables

Given the variable structure syncjobs: - filename: output1.bash content: data1 - filename: output2.bash content: data2 I want to loop over it creating the files with ansible.builtin....
Andreas Piening's user avatar
0 votes
3 answers
1k views

templating file with ansible to get different variable parts (through its index) for different hosts

I'm trying to distribute certificates to its corresponding hosts (I'll just give the example for the private key task): - name: create certificate private key community.crypto.openssl_privatekey: ...
Lethargos's user avatar
  • 505
0 votes
2 answers
359 views

Templating firewalld zones with ansible - issue with xml or vars

Templating firewalld zones with ansible - issue with xml manipulation I am running into a small bit of confusion for the rule family. whats in my CORRECTED vars file: firewalld_zones: - name: ...
Wipiid's user avatar
  • 1
1 vote
2 answers
2k views

Rsyslog 8 dynafile with a template

I'm trying to setup rsyslog to use the template RSYSLOG_TraditionalFileFormat as the default action template, but for some specific messages i need to use another template. In both cases i need ...
vobelic's user avatar
  • 323
2 votes
2 answers
2k views

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 ...
Eddingston's user avatar
0 votes
2 answers
384 views

How to apply HTML layout template to email using EXIM?

My goal is to apply a standard, branded layout template to all emails when sending (on the server, not the client). I have been googling this topic and not found any resources specifically addressing ...
mike.bronner's user avatar
1 vote
1 answer
1k views

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 ...
Alexander Shcheblikin's user avatar
2 votes
1 answer
2k views

rsyslog template stop ignored

I try to configure get my template for remote logging working but the stop statement is ignored and everiting is logged duplicate in the syslog and in my generated file %programname%.log. I want the ...
Jarne's user avatar
  • 25
2 votes
1 answer
504 views

sys-unconfig equivalent for Fedora 30

I'm trying to prepare a Fedora 30 KVM virtual machine template on Proxmox. I wanted to use the sys-unconfig command but it was removed in initscripts 9.81-1 virt-sysprep failed when I ran it from ...
jwalker's user avatar
  • 108
0 votes
1 answer
3k views

Zabbix service.discovery multiple templates for distinct items and triggers

service.discovery in Zabbix returns a JSON array of all current running services (based on filters) for each host. I would like to create a template hierarchy where i have a parent template that ...
Cristian Matthias Ambæk's user avatar
1 vote
1 answer
273 views

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 (...
Digin Dominic's user avatar
0 votes
2 answers
425 views

Is it possible to deploy the 'Start stop VM's during off-hours' solution of Automation account in ARM templates?

I need to deploy an Azure automation account to my resource group. This to add the module (start/stop VM's during off hours solution to my environment) For the automation account I succesfully used ...
achahbar's user avatar
  • 111
0 votes
0 answers
3k views

Prevent Smart Card prompt when looking for Enrollment Certificate

I'm using an Enrollment Agent user certificate to amend CSRs (in order to add SANs) My method is working fine - using the following command: certreq -config "CertAuth" -policy "PathtoCSR" "Path to ...
Scepticalist's user avatar
0 votes
1 answer
660 views

Azure ARM template redeploying

I have created first VM from Azure portal interface and it works good. I tried to deploy second VM using ARM template that is available from first VM. And I can't do it quickly. Primarily, I have to ...
Serg ОС's user avatar
0 votes
1 answer
585 views

VMSS with custom image (captured)

I'm trying to create VMSS with windows custom image that i captured. I created custom ARM template to use the but its not working when i'm trying to deploy. Its the right approach if i want to use ...
user3529149's user avatar
1 vote
0 answers
483 views

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, ...
Jermal Smith's user avatar
0 votes
1 answer
341 views

Jenkins - How can I lock template Job configurations for normal users but provide them to be copied?

I setting up a Jenkins-Server for our Company. To make things easy for our developers, I created 2 template Jobs with the usual required configurations. So when users creat new jobs they can use Copy ...
derHugo's user avatar
  • 143
6 votes
4 answers
10k views

How to trigger a custom error from inside a Jinja template?

Though Ansible itself has a way for triggering a custom error, I can not find anything similar for Jinja. My current method uses a syntax error: {% if 'ansible_mounts' in hostvars[host] %} # {{ ...
Mikhail T.'s user avatar
  • 2,377
5 votes
1 answer
19k views

How to do multiline Jinja2 conditionals in single block? [closed]

The below code is rejected as syntactically incorrect: {% if inventory_hostname in groups.aptcache set cachehost = 'localhost' else set cachehost = groups['aptcache'] | first ...
Mikhail T.'s user avatar
  • 2,377
2 votes
1 answer
4k views

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

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 ...
Ryan's user avatar
  • 65
0 votes
1 answer
841 views

Applying item template to elasticsearch

I am trying to apply an item template to my elasticsearch cluster, to deal with the issue of having fields with content longer than 32kb. I am using version 2.4.4, as this is the highest supported ...
Morten Toudahl's user avatar
16 votes
4 answers
21k views

Referring to an existing resource in CF Template

We have multiple CloudFormation scripts to create our stack. Now, we want to write (automate) new scripts which will be used just to updated 1 specific resource (business requirement). The thing ...
Em Ae's user avatar
  • 261
2 votes
1 answer
164 views

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 ...
jrd1989's user avatar
  • 688
0 votes
2 answers
940 views

Puppet/hiera : generate sereval files from one template

I'm running puppet 4 and I would like to generate several config files from the same template with different configurations for each one. for example : # cat /tmp/a.conf test1 # cat /tmp/b.conf ...
Skullone's user avatar
  • 195
0 votes
1 answer
5k views

How to pass item.src to a template in Ansible?

I have a Jinja2 template and I want to pass args to it from my vars/main.yml. For each set of vars, I need to generate a separate file on the remote server. My vars/main.yml has the following ...
udyshnkr's user avatar
0 votes
1 answer
691 views

rsyslog template not working correctly

Can anyone help me out with this exotic problem? I have some syslog servers forwarding messages to a central syslog server (rsyslogd 7.4.7). In the central syslog server I don't want to add ...
Alexandre Juma's user avatar
3 votes
2 answers
7k views

Format for hdr_sub pattern matching

I am trying to match the value of a header which has a space in it and cannot figure out what regex expressions haproxy likes. The header I'm after looks like this: X-Request-ID:'Foo: Bar' I would ...
Yana K.'s user avatar
  • 131
1 vote
0 answers
43 views

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 ...
Arvo Bowen's user avatar
0 votes
1 answer
650 views

update azure scaleset - switching from prebuilt image to custom image

I deployed a scaleset in azure and I need to change the underlying debian-image by credativ to a custom image. I found some good sources that do not really work for me: https://msftstack.wordpress....
Timo's user avatar
  • 143
0 votes
1 answer
3k views

How to use NGINX with templating?

Is there any way to do templating in nginx? For example, if I have a file like this: {header} <h1>This is a header</h1> This is not a header {footer} and then use NGINX to replace {...
markasoftware's user avatar
0 votes
0 answers
215 views

ESXi 5.5: Clone a VM to template using CLI (on Linux)

How can I clone a VM to a template from Linux CLI. I tried using VMware vSphere CLI (vCLI) in vain, couldn't find an option to do so.
vikas027's user avatar
  • 1,219
-1 votes
1 answer
195 views

Validate the original certificate template [closed]

I need to verify from what template was copied a certificate template y have searched in all the tabs for info but i have found anything about what was the original certificate template. **the ...
kimo pryvt's user avatar
0 votes
1 answer
2k views

Copy folder structure template to current folder

When our users create a new Project folder, I would like it to automatically copy a template folder structure and the template's permissions. So far the only thing I've come up with is a batch script ...
Fiernaq's user avatar
  • 41
0 votes
2 answers
8k views

How to remove hosts from zabbix template?

I have removed a bunch of servers from a template, but all the items and triggers from the template remained in the server configurations. Questions Is there a way how to unlink hosts form a ...
Aas's user avatar
  • 328
1 vote
1 answer
422 views

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 = ...
Chris Tonkinson's user avatar
0 votes
1 answer
696 views

get chef template path from template

In my chef erb template, I want to get the path the template is being copied to. So it looks like like: MY_PATH=<%= ###HOW DO I GET THE TEMPLATE PATH### %> Is there a way to get that?
Jeff Storey's user avatar
0 votes
1 answer
271 views

Cacti - Interpreting values for Network statistics

I've downloaded and installed the Percona Linux template. I noticed the values for tx-drop had values of 'm' and 'u' and don't quite understand why I'm getting values of micro and milli. I was ...
supmethods's user avatar
0 votes
1 answer
547 views

xen server windows template sysprep Autounattend

Got a Xen Server Template Windows 2008 R2, thats had alot of things already set (disk size, server manager disabled etc, etc) We spin up, windows patch host and re-run sysprep My question is, can ...
stravze's user avatar
  • 13
1 vote
2 answers
2k views

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 { ...
tgharold's user avatar
  • 639
9 votes
1 answer
14k views

salt stack: use state jinja variables in template

What I'd like to do is generate multiple configuration files for each openvpn user. I have the IP address and additional configuration in pillar. For example: openvpn: - user1: ip: 1.2.3.4 ...
Herrberg's user avatar
0 votes
1 answer
590 views

How to Seal Windows 7

I'm trying to prepare Windows 7 Template, i have used Sysprep.exe with the following options: Under System Cleanup Action, select Enter System Out-of-Box-Experience (OOBE). Tick the Generalize check ...
MohyedeenN's user avatar
  • 1,081
-1 votes
2 answers
129 views

Is there something like a VM hardware profile to store VM specifications(vCPU, RAM, Storage) in vCenter?

I am looking for something like a VM hardware specification file in vCenter appliances. A template/file that can be used to deploy VM with the same hardware specifications.
nickage's user avatar
  • 11
0 votes
1 answer
7k views

Puppet, hiera and erb - erb would not recognize array

I have a pretty annoying error I am desperate to fix. I have a puppet module where certain things are kept in a yaml file (hiera) so that people could quickly edit just that part. The structure is ...
Roman Grazhdan's user avatar
0 votes
1 answer
76 views

looking for a fast way to copy a template to a KVM guest

My KVM guests each has a logical volume on the host to be the entire virtual disk. What will be a fast way to copy a template over to the guest's virtual disk? I tried to create a lzop compressed file ...
Purres's user avatar
  • 239
0 votes
1 answer
317 views

Plesk notification email template in HTML? [closed]

Would i be able to use html in formatting notification emails in Plesk Penel? Just that :)
mariotanenbaum's user avatar
0 votes
1 answer
125 views

Template for use with Outlook 2010 t enable creation of multiple PST's for many users on one system

This is probably not something many people would have a need for but at this company where there is a large turnover, every user has to have IT create their account on a laptop. Even when recycling, ...
questorfla's user avatar
2 votes
3 answers
8k views

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 ...
crashintoty's user avatar