This commit is contained in:
Brian Zalewski 2023-06-11 01:59:38 +00:00
parent 4606ed0970
commit 13ee16125b
5 changed files with 123 additions and 10 deletions

View file

@ -0,0 +1,23 @@
---
dependency:
name: shell
command: |
echo ""
provisioner:
name: ansible
options:
vvv: true
playbooks:
converge: ../converge.yml
prepare: ../../.config/molecule/prepare.yml
docker:
create: ../../.config/molecule/docker.create.yml
destroy: ../../.config/molecule/docker.destroy.yml
gce:
create: ../../.config/molecule/gce.create.yml
destroy: ../../.config/molecule/gce.destroy.yml
vagrant:
create: ../../.config/molecule/vagrant.create.yml
destroy: ../../.config/molecule/vagrant.destroy.yml
verifier:
name: ansible

View file

@ -0,0 +1,51 @@
---
# yamllint disable rule:line-length
- name: Populate instance config dict Linux
ansible.builtin.set_fact:
instance_conf_dict:
instance: '{{ instance_info.name }}'
address: '{{ instance_info.networkInterfaces.0.accessConfigs.0.natIP if molecule_yml.driver.external_access else instance_info.networkInterfaces.0.networkIP }}'
user: "{{ lookup('env','USER') }}"
port: '22'
identity_file: '{{ ssh_identity_file }}'
instance_os_type: '{{ molecule_yml.driver.instance_os_type }}'
loop: '{{ server.results }}'
loop_control:
loop_var: instance_info
no_log: true
register: instance_conf_dict
- name: Populate instance config dict Windows
ansible.builtin.set_fact:
instance_conf_dict:
instance: '{{ instance_info.name }}'
address: '{{ instance_info.networkInterfaces.0.accessConfigs.0.natIP if molecule_yml.driver.external_access else instance_info.networkInterfaces.0.networkIP }}'
user: molecule_usr
password: '{{ instance_info.password }}'
port: '{{ instance_info.winrm_port | default(5986) }}'
winrm_transport: "{{ molecule_yml.driver.winrm_transport | default('ntlm') }}"
winrm_server_cert_validation: "{{ molecule_yml.driver.winrm_server_cert_validation | default('ignore') }}"
instance_os_type: '{{ molecule_yml.driver.instance_os_type }}'
loop: '{{ win_instances }}'
loop_control:
loop_var: instance_info
no_log: true
register: instance_conf_dict
- name: Wipe out instance config
ansible.builtin.set_fact:
instance_conf: {}
- name: Convert instance config dict to a list
ansible.builtin.set_fact:
instance_conf: "{{ instance_conf_dict.results | map(attribute='ansible_facts.instance_conf_dict') | list }}"
- name: Dump instance config
ansible.builtin.copy:
content: '{{ instance_conf }}'
dest: '{{ molecule_instance_config }}'
mode: '0600'

View file

@ -194,14 +194,11 @@ https://github.com/Andy-Python-Programmer/aero
* https://github.com/ivaaaan/smug
* https://github.com/arl/gitmux
* https://github.com/jessfraz/dockfmt
* https://github.com/sahib/brig
* https://github.com/vieux/docker-volume-sshfs
* https://github.com/lindell/multi-gitter
* https://github.com/DBCDK/morph
* https://github.com/buildkite/agent
* https://github.com/fiatjaf/jiq
* https://github.com/curusarn/resh
* https://github.com/fleetdm/fleet
* https://github.com/git-town/git-town
* https://github.com/0xERR0R/blocky
* https://github.com/terraform-linters/tflint
@ -210,12 +207,7 @@ https://github.com/Andy-Python-Programmer/aero
* https://github.com/aquasecurity/tfsec
* https://github.com/filhodanuvem/gitql
* https://github.com/filebrowser/filebrowser
* https://github.com/helm/helm
* https://github.com/homeport/dyff
* https://github.com/zquestz/s
* https://github.com/owenthereal/ccat
* https://github.com/errata-ai/vale
* https://github.com/gopasspw/gopass
* https://github.com/turbot/steampipe
* https://github.com/moby/buildkit
* https://github.com/schachmat/wego

View file

@ -309,6 +309,7 @@ softwareGroups:
- fig
- filebrowser
- fm
- gopass
- grex
- gron
- handlr
@ -333,6 +334,7 @@ softwareGroups:
- pgcli
- pywhat
- resume
- s-search
- sad
- slack-term
- slides
@ -818,9 +820,11 @@ softwareGroups:
- t
Sys-Admin: &Sys-Admin
- ctop
- fleetctl
- goaccess
- gtop
- htop
- pulumi
- sysbench
- sysdig
- sysget
@ -1303,6 +1307,7 @@ softwarePlugins:
docker:
plugins:
- sapk/plugin-rclone
- vieux/sshfs
# TODO Add Intellij missing plugins and fix install
intellij:
plugins:

View file

@ -540,6 +540,23 @@ softwarePackages:
ansible: professormanhattan.aptcacherng
_systemd: apt-cacher-ng
_type: cli
gopass:
_bin: gopass
_desc: The slightly more awesome standard unix password manager for teams
_docs: https://github.com/gopasspw/gopass/tree/master/docs
_github: https://github.com/gopasspw/gopass
_home: https://www.gopass.pw/
_name: GoPass
apk: gopass
brew: gopass
choco:
- gpg4win
- gopass
dnf: gopass
go: github.com/gopasspw/gopass@latest
pacman: gopass
scoop: gopass
winget: gopass.gopass
aqua:
_bin: aqua
_desc: '[aqua](https://aquaproj.github.io/) is a Declarative CLI Version manager written in Go. It supports Lazy Install, Registry, and continuous update with Renovate.'
@ -2170,6 +2187,14 @@ softwarePackages:
_name: Editly
npm: editly
_type: cli
fleetctl:
_bin: fleetctl
_desc: Open-source platform for IT and security teams with thousands of computers. (Linux, macOS, Windows, ChromeOS, AWS, Google Cloud, Azure, data center, containers, IoT)
_docs: https://fleetdm.com/docs
_github: https://github.com/fleetdm/fleet
_home: https://fleetdm.com/
_name: Fleet CLI
npm: fleetctl
elastic-agent:
# Elastic Agent performs some security measures that make it so that checking the bin only works
# with sudo. So the _when condition is added to account for this circumstance.
@ -4382,6 +4407,14 @@ softwarePackages:
brew: kn
github: github.com/knative/client
yay: knative-client-bin
s-search:
_bin: s
_desc: Open a web search in your terminal.
_docs: https://github.com/zquestz/s
_github: https://github.com/zquestz/s
_home: https://github.com/zquestz/s
_name: s
brew: s-search
footloose:
_bin: footloose
_desc: Container Machines - Containers that look like Virtual Machines
@ -4460,12 +4493,12 @@ softwarePackages:
_docs: https://helm.sh/docs
_github: https://github.com/helm/helm
_home: https://helm.sh/
_name: helm
_name: Helm
_snapClassic: true
brew: helm
choco: kubernetes-helm
scoop: helm
snap: helm
_type: cli
kubernetes-kompose:
_bin: kompose
_desc: Go from Docker Compose to Kubernetes
@ -5827,6 +5860,15 @@ softwarePackages:
github: github.com/Blacksmoke16/oq
snap: oq
yay: oq
pulumi:
_bin: pulumi
_desc: Pulumi - Infrastructure as Code in any programming language. Build infrastructure intuitively on any cloud using familiar languages
_docs: https://www.pulumi.com/docs/quickstart/
_github: https://github.com/pulumi/pulumi
_home: https://www.pulumi.com/
_name: Pulumi
brew: pulumi/tap/pulumi
choco: pulumi
osquery:
_bin: osquery
_desc: SQL powered operating system instrumentation, monitoring, and analytics