napalm-salt icon indicating copy to clipboard operation
napalm-salt copied to clipboard

Issue using devices.sls from web site guide.

Open bjames301 opened this issue 5 years ago • 3 comments

{%- for device in pillar.devices %} Startup the Proxy for {{ device }}: service.running: - name: salt-proxy@{{ device }} {%- endfor %}

does not work when using a proxy minion running centos 6. How would you recommend starting all minions that are either on windows or centos 6?

bjames301 avatar Dec 16 '19 22:12 bjames301

Do you get any error messages ?

I think the Jinja syntax is fine , but without any error messages it's hard to troubleshoot your problem.

network-shark avatar Dec 17 '19 11:12 network-shark

remoreminion:

      ID: Startup the Proxy for cisco
Function: service.running
    Name: salt-proxy@cisco
  Result: False
 Comment: The named service salt-proxy@cisco is not available
 Started: 10:06:03.522028
Duration: 15.932 ms
 Changes:

Summary for remoteminion

Succeeded: 0 Failed: 1

Total states run: 1 Total run time: 15.932 ms

bjames301 avatar Dec 17 '19 15:12 bjames301

Can you run the command with -l debug ?

network-shark avatar Dec 18 '19 09:12 network-shark