Skip to content

Instantly share code, notes, and snippets.

mike@dropship-hv:/gv1/homes/DEPAULO/mike/ddh/duckpan-vagrant :) [8] $ vagrant plugin install vagrant-berkshelf --plugin-version=2.0.1
Installing the 'vagrant-berkshelf --version '2.0.1'' plugin. This can take a few minutes...
Installed the plugin 'vagrant-berkshelf (2.0.1)'!
mike@dropship-hv:/gv1/homes/DEPAULO/mike/ddh/duckpan-vagrant :) [9] $
mike@dropship-hv:/gv1/homes/DEPAULO/mike/ddh/duckpan-vagrant :) [9] $ bundler
Using addressable 2.3.6
Using multipart-post 2.0.0
Using faraday 0.9.0
Using berkshelf-api-client 1.2.0
Using buff-extensions 1.0.0
@mikedep333
mikedep333 / gist:c4d1874656af26315162a698a277224c
Created October 8, 2019 19:57
ansible-pulp vars for F30 instance
pulp_default_admin_password: password
pulp_use_system_wide_pkgs: true
pulp_install_plugins:
pulp-certguard:
source_dir: "git+https://github.com/pulp/pulp-certguard.git#egg=pulp-certguard"
pulp-docker:
source_dir: "git+https://github.com/pulp/pulp_docker.git#egg=pulp-docker"
pulp-rpm:
prereq_role: "pulp-rpm-prerequisites"
source_dir: "git+https://github.com/pulp/pulp_rpm.git#egg=pulp-rpm"
---
- hosts: all
become: true
tasks:
- file:
path: /become-test
state: touch
@mikedep333
mikedep333 / gist:1eab5a9dd59f4faff37fc6a4f723023f
Created January 16, 2020 19:04
Manaully testing pulpcore 3.0.1
# within ansible-pulp (and a venv for molecule):
molecule destroy
molecule create -s default-upgrade
molecule converge -s default-upgrade
# Observe that the task "pulp : Install pulpcore package via PyPI" was "changed" for all 3 containers. Dep updates can trigger it too.
docker ps
# I just picked the centos 7 container's ID.
docker exec -it bd9ce5db336a /bin/bash
within the molecule VM-like container:
---
- 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'
@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: {}
@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 / 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 / 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 / gist:38d2af65fc9fd277e2dc115dd8e9617b
Last active October 18, 2022 18:37
starting a podman-compose cluster with additional pulp-content hosts
git clone git@github.com: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"