emper0r | hi. i did a simple script to run cli53 tool to record my ip address instance into aws route53 , if i run manually script works. but using cloud-init with runcmd: - /usr/local/bin/route53_script.sh not work. what i'm missing? | 07:10 |
---|---|---|
holmanb | emper0r: What do you expect to happen? It's hard to suggest anything without more detail. | 07:19 |
emper0r | just execute the script | 07:19 |
emper0r | i add a simple log when run to verify if was execute but is like ignore | 07:19 |
emper0r | i tried in many way | 07:19 |
emper0r | - /usr/local/bin/script.sh - script.sh - sudo script.sh - sudo /usr/local/bin/script. | 07:20 |
emper0r | nothing | 07:20 |
holmanb | Are you expecting this to run every boot? | 07:20 |
emper0r | yes | 07:20 |
emper0r | oh including this [ 'sh', '-c', 'script' ] | 07:20 |
emper0r | is to autoregistrate ip addres in my private zone. | 07:21 |
emper0r | so have cli53 tool on AMI to when boot ec2 isntance auto register | 07:22 |
holmanb | https://cloudinit.readthedocs.io/en/latest/topics/modules.html#runcmd | 07:22 |
holmanb | runcmd does not run every boot | 07:22 |
holmanb | See the module frequency value | 07:24 |
emper0r | hmmm.. i see | 07:27 |
emper0r | i'll try bootcmd | 07:29 |
emper0r | is possible run cloud init in the same ec2 to "simulate" and see if run with the parameters set ? | 07:31 |
emper0r | bootcmd: not work :S is frustrating | 07:35 |
emper0r | ok thx anyway... | 07:37 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!