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…
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…
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…
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…
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:…
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…
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 is a header

This is not a header {footer} and then use NGINX to replace {header} with, say, this: This…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/nginx" class="post-tag grid--cell" title="show questions tagged 'nginx'" rel="tag">nginx</a> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/template" class="post-tag grid--cell" title="show questions tagged 'template'" rel="tag">template</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 19 '16 at 03:40">asked Mar 19 '16 at 03:40</time> <a href="../../users/254628/markasoftware" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/254628.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="markasoftware" /> </a> <div class="s-user-card--info"> <a href="../../users/254628/markasoftware" class="s-user-card--link">markasoftware</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">489</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="5 silver badge">5</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badge">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/template_page=2" rel="prev" title="Go to page 2">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/template_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/template_page=2" rel="" title="Go to page 2">2</a> <div class="s-pagination--item is-selected">3</div> <a class="s-pagination--item" href="../../questions/tagged/template_page=4" rel="" title="Go to page 4">4</a> <a class="s-pagination--item" href="../../questions/tagged/template_page=5" rel="" title="Go to page 5">5</a> <a class="s-pagination--item" href="../../questions/tagged/template_page=4" rel="next" title="Go to page 4"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>