Skip to content

Instantly share code, notes, and snippets.

/file.line.fail Secret

Created November 13, 2017 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dd1aee19cb7310426e365244077d4f31 to your computer and use it in GitHub Desktop.
Save anonymous/dd1aee19cb7310426e365244077d4f31 to your computer and use it in GitHub Desktop.
Execution of file.line fails
The execution of the file.line module fails.
[root as root@minion1:~ ]$ cat test_file.txt
minion_id:6244676289953792
minion_name:minion1
minion_token:FPDqiPzweC74lyN
[root as root@minion1:~ ]$ salt-call -l debug file.line /root/test_file.txt "minion_token:KHwqrehwadK34jakdh" match="minion_token" mode="replace" backup=True
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Connecting to master. Attempt 1 of 1
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (8533)
[DEBUG ] Setting zmq_reconnect_ivl to '8533ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506', 'clear')
[DEBUG ] Decrypting the current master AES key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] SaltEvent PUB socket URI: /var/run/salt/minion/minion_event_738faf60a7_pub.ipc
[DEBUG ] SaltEvent PULL socket URI: /var/run/salt/minion/minion_event_738faf60a7_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/minion/minion_event_738faf60a7_pull.ipc
[DEBUG ] Sending event: tag = salt/auth/creds; data = {'_stamp': '2017-11-13T16:09:06.785173', 'creds': {'publish_port': 4505, 'aes': 'nK0kRjrxBh7FuQV6EL84Ewm1ISj6X0/hLskr48GUOR/Ds9RH9ePgIPbXcshKq91I1FlzvUOTYtY=', 'master_uri': 'tcp://192.168.5.100:4506'}, 'key': ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506')}
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506')
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded file.line
[DEBUG ] LazyLoaded local_cache.returner
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://192.168.5.100:4506')
[DEBUG ] LazyLoaded nested.output
local:
---
+++
@@ -1,4 +1,4 @@
minion_id:6244676289953792 minion_name:minion1-minion_token:FPDqiPzweC74lyN+minion_token:KHwqrehwadK34jakdh
[root as root@minion1:~ ]$ cat test_file.txt
minion_id:6244676289953792
minion_name:minion1
minion_token:FPDqiPzweC74lyN
[root as root@minion1:~ ]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment