Skip to content

Instantly share code, notes, and snippets.

View mamercad's full-sized avatar

Mark Mercado mamercad

View GitHub Profile
awx-operator devel* ≡
❯ kubectl get nodes | awk '{print $5}'
VERSION
v1.24.4+k3s1
v1.24.4+k3s1
v1.24.4+k3s1
v1.24.4+k3s1
v1.24.4+k3s1
awx-operator devel* ≡
@mamercad
mamercad / gist:bea85d3608d01c0d1ba03355b500c644
Created August 2, 2022 02:08
default minikube coredns deployment
❯ ~ minikube kubectl -- --namespace kube-system get deploy coredns -o yaml
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: "2022-08-02T02:05:45Z"
generation: 2
labels:
k8s-app: kube-dns
❯ grep -v ^# ~/.zshrc | grep ^\.
export ZSH="/Users/mark/.oh-my-zsh"
ZSH_DISABLE_COMPFIX="true"
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent identities personal.key
ZSH_THEME="dracula"
ZSH_TMUX_AUTOCONNECT="false"
plugins=(direnv fzf git kubectl pyenv pipenv rbenv ssh-agent tmux thefuck fly charm)
source $ZSH/oh-my-zsh.sh
[[ -f ~/.envvars ]] && source ~/.envvars
❯ git status
On branch helm
Your branch is up to date with 'origin/helm'.
nothing to commit, working tree clean
❯ VERSION=0.17.4 make helm-chart
== KUSTOMIZE (image and namespace) ==
cd config/manager && /usr/local/bin/kustomize edit set image controller=quay.io/ansible/awx-operator:0.17.4
cd config/default && /usr/local/bin/kustomize edit set namespace awx
❯ ansible-playbook -i localhost, -c local droplet.yml -v
Using /Users/mark/.ansible.cfg as config file
PLAY [droplet] *******************************************************************************************************************************************************************
TASK [Create a new Droplet] ******************************************************************************************************************************************************
changed: [localhost] => changed=true
data:
droplet:
backup_ids: []
❯ molecule create
INFO default scenario test matrix: dependency, create, prepare
INFO Performing prerun...
INFO Added ANSIBLE_LIBRARY=/Users/mark/.cache/ansible-compat/ae6233/modules:/Users/mark/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
INFO Added ANSIBLE_COLLECTIONS_PATH=/Users/mark/.cache/ansible-compat/ae6233/collections:/Users/mark/.ansible/collections:/usr/share/ansible/collections
INFO Added ANSIBLE_ROLES_PATH=/Users/mark/.cache/ansible-compat/ae6233/roles:/Users/mark/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
INFO Using /Users/mark/.ansible/roles/foo.test_role symlink to current repository in order to enable Ansible to find the role using its expected full name.
INFO Running default > dependency
WARNING Skipping, missing the requirements file.
WARNING Skipping, missing the requirements file.
❯ molecule --debug create
DEBUG Validating schema /Users/mark/Code/github.com/mamercad/molecule-digitalocean/test_role/molecule/default/molecule.yml.
INFO default scenario test matrix: dependency, create, prepare
INFO Performing prerun...
INFO Added ANSIBLE_LIBRARY=/Users/mark/.cache/ansible-compat/ae6233/modules:/Users/mark/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
INFO Added ANSIBLE_COLLECTIONS_PATH=/Users/mark/.cache/ansible-compat/ae6233/collections:/Users/mark/.ansible/collections:/usr/share/ansible/collections
INFO Added ANSIBLE_ROLES_PATH=/Users/mark/.cache/ansible-compat/ae6233/roles:/Users/mark/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
INFO Using /Users/mark/.ansible/roles/foo.test_role symlink to current repository in order to enable Ansible to find the role using its expected full name.
INFO Running default > dependency
WARNING Skipping, missing the requirements file.
❯ molecule --debug create
DEBUG Validating schema /Users/mark/Code/github.com/mamercad/molecule-digitalocean/test_role/molecule/default/molecule.yml.
INFO default scenario test matrix: dependency, create, prepare
INFO Performing prerun...
INFO Added ANSIBLE_LIBRARY=/Users/mark/.cache/ansible-compat/ae6233/modules:/Users/mark/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
INFO Added ANSIBLE_COLLECTIONS_PATH=/Users/mark/.cache/ansible-compat/ae6233/collections:/Users/mark/.ansible/collections:/usr/share/ansible/collections
INFO Added ANSIBLE_ROLES_PATH=/Users/mark/.cache/ansible-compat/ae6233/roles:/Users/mark/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
INFO Using /Users/mark/.ansible/roles/foo.test_role symlink to current repository in order to enable Ansible to find the role using its expected full name.
INFO Running default > dependency
WARNING Skipping, missing the requirements file.
- name: Deploy wal-g service
ansible.builtin.copy:
dest: /etc/systemd/system/wal-g.service
owner: root
group: root
mode: 0644
content: |
[Unit]
Description=wal-g backup-push
[Service]

Keybase proof

I hereby claim:

  • I am mamercad on github.
  • I am mamercad (https://keybase.io/mamercad) on keybase.
  • I have a public key ASC-TwYKwIAcSUqjd9QzqKH3onua8Klbd7-3CX58cJuYGgo

To claim this, I am signing this object: