Skip to content

Instantly share code, notes, and snippets.

Agent token info
During IPA ramdisk:
localhost:~ # cat /proc/cmdline·
initrd=/initrd text nofb nomodeset vga=normal ipa-insecure=1 console=ttyS0 ipa-inspection-collectors=default,extra-hardware,logs ipa-enable-vlan-interfaces=all ipa-inspection-dhcp-all-interfaces=1 ipa-collect-lldp=0 ipa-inspection-callback-url=http://192.168.123.2:5050/v1/continue ipa-api-url=http://192.168.123.2:6385 ipa-agent-token=OshpP8NpN6CiU2TbAdULt6PMP898eUlZT87Soiert0Y ipa-debug=1 boot_method=vmedia -- BOOT_IMAGE=/vmlinuz·
localhost:~ # mount -L config-2 /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
localhost:~ # grep -R OshpP8NpN6CiU2TbAdULt6PMP898eUlZT87Soiert0Y /mnt
/mnt/isolinux/isolinux.cfg:append initrd=/initrd text nofb nomodeset vga=normal ipa-insecure=1 console=ttyS0 ipa-inspection-collectors=default,extra-hardware,logs ipa-enable-vlan-interfaces=all ipa-inspection-dhcp-all-interfaces=1 ipa-collect-lldp=0 ipa-inspection-callback-url=http://192.168.123.2:5050/v1/continue ipa-api-url=http://192.168.
@hardys
hardys / 0001-WIP-Makefile-use-podman.patch
Created October 24, 2023 08:40
Podman build cluster-api-provider-rke2
From f7ec8f0fa53e6e611d4000ad8730177b14f9682d Mon Sep 17 00:00:00 2001
From: Steven <steven.hardy@suse.com>
Date: Tue, 24 Oct 2023 11:39:07 +0300
Subject: [PATCH] WIP Makefile use podman
---
Makefile | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
@hardys
hardys / install-config.yaml
Last active February 4, 2020 09:52
Sample install-config.yaml
apiVersion: v1
baseDomain: test.metalkube.org
networking:
networkType: OVNKubernetes
machineCIDR: fd2e:6f44:5dd8:c956::/120
clusterNetwork:
- cidr: fd01::/48
hostPrefix: 64
serviceNetwork:
- fd02::/112
{"update_identifier": "1500495964", "bootstrap_server_id": "ffdc8a8d-2db2-4851-89cc-5f10a052e356", "deploy_resource_name": "0", "role_data": "{\"config_settings\": {}, \"docker_config\": {\"step_1\": {\"memcached\": {\"command\": [\"/bin/bash\", \"-c\", \"source /etc/sysconfig/memcached; /usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS\"], \"image\": \"192.168.1.16:8787/tripleoupstream/centos-binary-memcached:latest\", \"net\": \"host\", \"privileged\": false, \"restart\": \"always\", \"start_order\": 1, \"volumes\": [\"/etc/hosts:/etc/hosts:ro\", \"/etc/localtime:/etc/localtime:ro\", \"/etc/puppet:/etc/puppet:ro\", \"/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro\", \"/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro\", \"/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro\", \"/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro\", \"/dev/log:/dev/log\", \"/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro\", \"/var/lib/c
---
version: '2.0'
test_nodes_with_profile:
description: Find nodes with a specific profile tag
input:
- profile: test
tasks:
get_available_nodes:
Resoure Chain testing
heat_template_version: 2013-05-23
resources:
random:
type: OS::Heat::RandomString
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
CEILOMETER_BACKEND=mongo
enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
enable_service c-bak
enable_service t-api
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
@hardys
hardys / server_with_volume_group.yaml
Last active August 29, 2015 14:06
ResourceGroup Blog Snippet4
heat_template_version: 2013-05-23
resources:
rg:
type: OS::Heat::ResourceGroup
properties:
count: 5
resource_def: {type: My::Server:WithVolume}
@hardys
hardys / env_server_with_volume.yaml
Created September 11, 2014 09:03
ResourceGroup Blog Snippet3
resource_registry:
My::Server::WithVolume: server_with_volume.yaml