Skip to content

Instantly share code, notes, and snippets.

@mikedep333
mikedep333 / config.yaml
Created June 15, 2023 14:17
sample bonfire config for new app/component
# Bonfire deployment configuration
# ~/.config/bonfire/config.yaml
# Defines where to fetch the file that defines application configs
appsFile:
host: gitlab
repo: insights-platform/cicd-common
path: bonfire_configs/ephemeral_apps_deprecated.yaml
# (optional) define any apps locally. An app defined here with <name> will override config for app
diff --git a/.ci/scripts/update_ci_branches.py b/.ci/scripts/update_ci_branches.py
index 4d92d8c..aecc997 100755
--- a/.ci/scripts/update_ci_branches.py
+++ b/.ci/scripts/update_ci_branches.py
@@ -13,7 +13,7 @@ github_api = "https://api.github.com"
for branch in branches:
print(f"Updating {branch}")
- if type(branch) == float and ( branch < 3.22 ):
+ if type(branch) == float and branch < 3.22 :
@mikedep333
mikedep333 / gist:4b548a44085e7e9c162a5e9cd4c6b087
Created February 7, 2023 14:46
pulp docker-compose scaling pulp-content
diff --git a/images/compose/docker-compose.yml b/images/compose/docker-compose.yml
index 028e4ac..227a43a 100644
--- a/images/compose/docker-compose.yml
+++ b/images/compose/docker-compose.yml
@@ -75,6 +75,9 @@ services:
POSTGRES_SERVICE_PORT: 5432
POSTGRES_SERVICE_HOST: postgres
restart: always
+ ports:
+ - "24816-24916:24816"
@mikedep333
mikedep333 / hcaas-ee.md
Last active January 5, 2023 20:47
Creating an HCaaS Ephemeral Environment
@mikedep333
mikedep333 / gist:38d2af65fc9fd277e2dc115dd8e9617b
Last active October 18, 2022 18:37
starting a podman-compose cluster with additional pulp-content hosts
git clone [email protected]:pulp/pulp-oci-images.git
cd pulp-oci-images/images/compose
podman-compose up -d
# Adjust "2 10` for the list of additional content hosts
# pulp-content host #2 will be port 20002, and so on. (`podman ps`)
# Note that the 1st content host will be port 24816, unless you modify podman-compose.yml to have port map "20001:24816"
for i in `seq 2 10`
do
let "port = $i + 20000"
@mikedep333
mikedep333 / gist:c70a1da4230af5da3daec545e304ffa2
Created December 11, 2020 18:10
Incomplete fix for pulp_installer issue with EL7 LANG=C.UTF-8
diff --git a/requirements.yml b/requirements.yml
index 70b756a..ad6b4c7 100644
--- a/requirements.yml
+++ b/requirements.yml
@@ -1,5 +1,3 @@
---
-roles:
- - { name: geerlingguy.postgresql, version: 2.2.1 }
collections:
- ansible.posix
@mikedep333
mikedep333 / ci.yaml
Last active July 1, 2021 10:48
Pulp GHA tmate debugging
# *Append* to file such as .github/workflows/ci.yml
- name: After failure - Setup Tmate
if: failure()
uses: mxschmitt/action-tmate@v3
@mikedep333
mikedep333 / 99-local.yaml
Created November 19, 2020 22:29
pulp_installer vagrant custom box with disk_size
# pulp_installer.git/vagrant/boxes.d/99-local.yaml
#
# Copied from 20-sandbox.yaml, keep most variables in sync manually
# Added disk_size
pulp3-sandbox-centos8-bigdisk:
box_name: 'centos/82'
box_url: 'https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-Vagrant-8.2.2004-20200611.2.x86_64.vagrant-libvirt.box'
memory: 4096
ansible:
playbook: "vagrant/playbooks/user-sandbox.yml"
@mikedep333
mikedep333 / pulp_pkgs_playbook.yml
Last active July 30, 2020 20:57
Pulp install from katello repo on el7 / el8
---
- hosts: all
vars:
pulp_settings:
secret_key: secret
content_origin: "https://{{ ansible_fqdn }}"
pulp_default_admin_password: password
pulp_install_source: packages
pulp_install_plugins:
# galaxy-ng: {}
---
- hosts: all
tasks:
# Does not support being re-run, with or without updates=yes
- git:
repo: "https://github.com/pulp/pulpcore/"
dest: /tmp/pulpcore
version: '630'
refspec: 'pull/630/head:630'