This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Download cloud-init image | |
| register: image | |
| ansible.builtin.get_url: | |
| url: "{{ image_url }}" | |
| dest: /tmp | |
| mode: '0644' | |
| force: true | |
| - name: Install pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages{ | |
| stage('Linting') { | |
| parallel { | |
| stage('Chekov') { | |
| steps { | |
| script { | |
| dir("${env.WORKSPACE}/terraform"){ | |
| sh "checkov --directory terraform/modules -o junitxml > $WORKSPACE/checkov.xml || true" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.10 as python-base | |
| # https://python-poetry.org/docs#ci-recommendations | |
| ENV POETRY_VERSION=1.2.0 | |
| ENV POETRY_HOME=/opt/poetry | |
| ENV POETRY_VENV=/opt/poetry-venv | |
| # Tell Poetry where to place its cache and virtual environment | |
| ENV POETRY_CACHE_DIR=/opt/.cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Manually remove finalizers | |
| kubectl edit -n cattle-system secret tls-rancher | |
| kubectl patch secret tls-rancher -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system | |
| kubectl patch namespace cattle-system -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system | |
| kubectl delete namespace cattle-system --grace-period=0 --force | |
| kubectl patch namespace cattle-global-data -p '{"metadata":{"finalizers":[]}}' --type='merge' -n cattle-system | |
| kubectl delete namespace cattle-global-data --grace-period=0 --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Install multiple packages sequentially | |
| become: yes | |
| become_user: Administrator | |
| become_method: runas | |
| win_chocolatey: | |
| name: '{{ item }}' | |
| state: present | |
| loop: | |
| - azure-data-studio | |
| - googlechrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Edit this configuration file to define what should be installed on | |
| # your system. Help is available in the configuration.nix(5) man page | |
| # and in the NixOS manual (accessible by running ‘nixos-help’). | |
| { config, pkgs, ... }: | |
| { | |
| imports = | |
| [ # Include the results of the hardware scan. | |
| ./hardware-configuration.nix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ArchLabs i3 config | |
| # border & title | |
| for_window [class="^.*"] border pixel 1, title_format "<b> %class >> %title </b>" | |
| # gaps | |
| gaps inner 8 | |
| gaps outer 0 | |
| # font |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| #installation via script from github | |
| #export ZSH="/home/$USER/.oh-my-zsh" | |
| #installation via yay -S oh-my-zsh-git | |
| export ZSH=/usr/share/oh-my-zsh/ | |
| # Set name of the theme to load --- if set to "random", it will |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pikaur -S helm | |
| echo "----------------Add nginx ingress helm chart repo----------------" | |
| helm repo add stable https://kubernetes-charts.storage.googleapis.com/ | |
| echo "-----------------Add nginx ingress helm chart repo---------------" | |
| helm repo add nginx-stable https://helm.nginx.com/stable | |
| helm repo update |
NewerOlder