Tuesday, December 29, 2020

Rundeck: Inline Script Permission Denied.

Problem: 

bash: /tmp/test.goweekend.ca-dispatch-script.tmp.sh: Permission denied


Cause:

Modern Linux /tmp was mounted with the noexec option which caused this exact error case


Solution:

Change file-copy-destination-dir: to different folder /home/fei 

web.goweekend.ca:

    hostname: 192.168.1.66

    username: fei

    ssh-key-storage-path: keys/rundeckpoc/rundeckpockey

    file-copier: script-copy

    destdir: /home/fei

    file-copy-destination-dir: /home/fei

    script-copy: scp ${file-copy.file} ${node.username}@${node.hostname}:${file-copy.destination}

    script-copy-remote-filepath: ${node.destdir}/${file-copy.filename}

Friday, December 18, 2020

DNS, NSLOOKUP, dig

 nslookup -query=SOA goweekend.ca ns.goweekend.ca


Find you own public ip address:

dig +short myip.opendns.com @resolver1.opendns.com
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com

Saturday, December 12, 2020

AWS: Action does not apply to any resource(s) in statement

 

Error: Action does not apply to any resource(s) in statement

The policy cannot be apply to object/container), it must be applied to the contents.





Wednesday, December 9, 2020

Apache HTTPd log request HEADER

 LoadModule log_forensic_module /usr/lib64/httpd/modules/mod_log_forensic.so 

<IfModule log_forensic_module> 
ForensicLog /var/log/httpd/forensic_log 
</IfModule> 

Friday, December 4, 2020

Rundeck: Define remote node with resources.xml

<project>

<node name="ansible01"

  tags="opensusei, linux"

  osFamily="unix"

  username="rundeck"

  hostname="34.72.107.63"

  ssh-key-storage-path="keys/rundeck/rundeckmac"

  file-copier="ssh-copier"

  ssh-options="-o ConnectTimeout=5000" />

</project>

Thursday, December 3, 2020