Questions tagged [template]
69 questions
1
vote
1 answer
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 nothing.
These are the SAs and SPs I…

Leonardo Bergesio
- 11
- 3
1
vote
1 answer
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.template using the field filename for the dest.
I can…

Andreas Piening
- 173
- 1
- 9
1
vote
2 answers
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 dynaFile.
I'm trying to achieve that…

vobelic
- 193
- 1
- 5
- 17
0
votes
1 answer
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 contains the service.discovery LLD service, and than…

Cristian Matthias Ambæk
- 267
- 2
- 13
0
votes
2 answers
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 the following template. But to add the module I…

achahbar
- 111
- 1
0
votes
0 answers
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 SanDetails.inf" "NewCSROutputPath"
But when I…

Scepticalist
- 131
- 1
- 8
0
votes
1 answer
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 solve task with some dependency loops because I…

Serg ОС
- 1
0
votes
1 answer
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 custom image with VMSS?
Should i use VHD and not…
0
votes
1 answer
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 from to copy the configuration of the templates…

derHugo
- 143
- 1
- 1
- 7
0
votes
1 answer
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 version in graylog.
See:…

Morten Toudahl
- 41
- 9
0
votes
2 answers
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
test2
And I need to put all those informations in…

Skullone
- 195
- 1
- 1
- 11
0
votes
1 answer
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 structure:
List:
- { src: [
classPath1: xxx,
…

udyshnkr
- 3
- 1
- 4
0
votes
1 answer
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 timestamps to an already stamped message so I created a…

Alexandre Juma
- 103
- 4
0
votes
1 answer
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…

Timo
- 143
- 7
0
votes
1 answer
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}
This…
This is a header
This is not a header {footer} and then use NGINX to replace {header} with, say, this:
markasoftware
- 489
- 1
- 5
- 7