Puppet Notes

Modules Install module on Puppet Server /opt/puppetlabs/bin/puppet module install <name of module> Uninstall module on Puppet Server /opt/puppetlabs/bin/puppet module uninstall <name of module> Resource: https://www.puppetcookbook.com/posts/installing-modules-from-the-puppet-forge.html List installed Modules puppet module list Resource: https://puppet.…

Packer notes

File transferThis snippet will move a directory called scripts into the /tmp directory of the AMI being built. It will then run an ls -l on /tmp from within the AMI being built so that we can see that the directory transferred as we expected it to. "provisioners": [{ "type": "file"…

Ansible Notes

This will encompass things that I find useful and end up looking up later when I haven't coded in a while.CWD- name: Go to the folder and execute command command: chdir=/opt/tools/temp lsResource: https://stackoverflow.com/questions/19369931/ansible-how-to-change-active-directory-in-ansible-playbookAdd apt repoThis will create ```docker.list``` in ```/etc/…

Ruby Notes

This will encompass things that I find useful and end up looking up later when I haven't coded in a while.File OperationsChmod fileFile.chmod(0600, file)Resource: https://stackoverflow.com/questions/22707040/change-permissions-of-file-in-rubyMove file without fileutilsFile.rename source_path, target_pathResource: https://stackoverflow.com/questions/403239/how-do-i-move-a-file-with-rubyFix extensions not…

Kali Config

This encompasses the various things I do whenever I'm setting up a new Kali VM in Virtualbox. Proxy Configuration Configure proxy (if applicable) by inputting the required values into /etc/environment. It will probably look something like this: http_proxy=www.proxy.com:80 https_proxy=www.proxy.com:80…