Skip to content

Instantly share code, notes, and snippets.

View adarobin's full-sized avatar

Adam Robinson adarobin

View GitHub Profile
diff --git a/playbooks/roles/bifrost-ironic-install/defaults/main.yml b/playbooks/roles/bifrost-ironic-install/defaults/main.yml
index 3cd1eeb9..0d2bae99 100644
--- a/playbooks/roles/bifrost-ironic-install/defaults/main.yml
+++ b/playbooks/roles/bifrost-ironic-install/defaults/main.yml
@@ -152,6 +152,7 @@ enabled_deploy_interfaces: "direct,ramdisk"
# These are calculated based on enabled_hardware_types if empty
enabled_bios_interfaces: ""
enabled_boot_interfaces: ""
+enabled_inspect_interfaces: ""
enabled_management_interfaces: ""
diff --git a/playbooks/roles/bifrost-ironic-install/defaults/main.yml b/playbooks/roles/bifrost-ironic-install/defaults/main.yml
index fa4591a8..3cd1eeb9 100644
--- a/playbooks/roles/bifrost-ironic-install/defaults/main.yml
+++ b/playbooks/roles/bifrost-ironic-install/defaults/main.yml
@@ -406,3 +406,11 @@ pxe_kernel_params: >-
{{ extra_kernel_options | default('') }}
redfish_kernel_params: "{{ pxe_kernel_params }}"
ilo_kernel_params: "{{ pxe_kernel_params }}"
+
+symlinks_from_venv:
@adarobin
adarobin / PAS_swagger_OAS3_fixed.diff
Last active September 10, 2021 13:49
PAS OpenAPI with openapi-generate
117d116
<
120,121d118
< schema:
< type: string
248,249d244
< schema:
< type: string
391,392d385
< schema:
module "vmware-syn-eth-ligs-unstacked" {
source = "path/to/synergy.tf"
logical_interconnect_type = "Virtual Connect SE 40Gb F8 Module for Synergy"
logical_interconnect_link_type = "Synergy 20Gb Interconnect Link Module"
a_side_primary_enclosure = 1
b_side_primary_enclosure = 2
lig_name_prefix = "vmware"
uplink_port_nums = [62,63,64,65,67,68,69,70]
snmp_community_string = "foo"
variable "native_network_uri" {
type = "string"
description = "The native network of the uplink ports"
default = ""
}
variable "network_uris" {
type = "list"
description = "The networks trunked to the uplink ports"
default = []
variable "native_network_uri" {
type = "string"
description = "The native network of the uplink ports"
default = ""
}
variable "network_uris" {
description = "The networks trunked to the uplink ports"
type = "list"
default = []
@adarobin
adarobin / crash.log
Created August 9, 2019 13:45
for_each crashes on null_resource with local-exec provisioner crash.log
2019/08/09 09:40:04 [INFO] Terraform version: 0.12.6
2019/08/09 09:40:04 [INFO] Go runtime version: go1.12.7
2019/08/09 09:40:04 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/08/09 09:40:04 [DEBUG] Attempting to open CLI config file: /Users/adarobin/.terraformrc
2019/08/09 09:40:04 Loading CLI configuration from /Users/adarobin/.terraformrc
2019/08/09 09:40:04 [INFO] CLI command args: []string{"apply"}
2019/08/09 09:40:04 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/08/09 09:40:04 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/08/09 09:40:04 [DEBUG] New state was assigned lineage "34b35dc9-7f96-330d-ddce-e54036caabc2"
2019/08/09 09:40:04 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@adarobin
adarobin / tf_log.txt
Created August 9, 2019 13:42
for_each crashes on null_resource with local-exec provisioner TF_LOG
2019/08/09 09:40:06 [INFO] backend/local: apply calling Apply
2019/08/09 09:40:06 [INFO] terraform: building graph: GraphTypeApply
2019/08/09 09:40:06 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/08/09 09:40:06 [TRACE] ConfigTransformer: Starting for path:
2019/08/09 09:40:06 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
null_resource.test (prepare state) - *terraform.NodeApplyableResource
------
2019/08/09 09:40:06 [TRACE] Executing graph transform *terraform.DiffTransformer
2019/08/09 09:40:06 [TRACE] DiffTransformer starting
2019/08/09 09:40:06 [TRACE] DiffTransformer: found DeleteThenCreate change for null_resource.test["foo"]
@adarobin
adarobin / ansible-shell-local-windows.json
Last active October 9, 2022 10:34
Using the Shell-Local provisioner for Ansible against Windows with Packer
{
"type": "powershell",
"inline": [
"switch -Wildcard ($env:PACKER_BUILDER_TYPE) {",
" \"amazon*\" { $publicipv4 = Invoke-RestMethod -Method GET -Uri http://169.254.169.254/latest/meta-data/public-ipv4 }",
" \"azure*\" { $publicipv4 = Invoke-RestMethod -Method GET -Uri \"http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-12-01&format=text\" -Headers @{\"Metadata\" = \"true\"} }",
" \"googlecompute\" { $publicipv4 = Invoke-RestMethod -Method GET -Uri http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip -Headers @{\"Metadata-Flavor\" = \"Google\"} }",
" Default { Throw \"Unknown PACKER_BUILDER_TYPE\" } }",
"\"[{{build_name}}]\" | Out-File C:\\Windows\\Temp\\host -encoding ascii",
"$publicipv4 | Out-File C:\\Windows\\Temp\\host -encoding ascii"
@adarobin
adarobin / boot.txt
Created May 8, 2018 02:18
Install Oracle VM on Hyper-V
mboot.c32 xen.gz dom0_mem=max:128G dom0_max_vcpus=20 --- vmlinuz ata_piix.prefer_ms_hyperv=0 --- initrd.img