Skip to content

Instantly share code, notes, and snippets.

#
# Description: This method Performs the following functions:
# 1. YAML load the Service Dialog Options from @task.get_option(:parsed_dialog_options))
# 2. Set the name of the service
# 3. Set tags on the service
# 5. Override miq_provision task with any options and tags
# Important - The dialog_parser automate method has to run prior to this in order to populate the dialog information.
#
def log_and_update_message(level, msg, update_message = false)
$evm.log(level, msg.to_s)
#
# Description: This method Performs the following functions:
# 1. YAML load the Service Dialog Options from @task.get_option(:parsed_dialog_options))
# 2. Set the name of the service
# 3. Set tags on the service
# 5. Pass down any dialog options and tags to child catalog items pointing to CatalogItemInitialization
# Important - The dialog_parser automate method has to run prior to this in order to populate the dialog information.
#
def log_and_update_message(level, msg, update_message = false)
$evm.log(level, msg.to_s)
#
# Description: This method sends an e-mail when the following event is raised:
# Events: vm_provisioned
#
# Model Notes:
# 1. to_email_address - used to specify an email address in the case where the
# vm's owner does not have an email address. To specify more than one email
# address separate email address with commas. (I.e. [email protected],[email protected])
# 2. from_email_address - used to specify an email address in the event the
# requester replies to the email
# / Infra / VM / Provisioning / Naming / default (vmname)
#
# Description: This is the default naming scheme
# 1. If VM Name was not chosen during dialog processing then use vm_prefix
# from dialog else use model and [:environment] tag to generate name
# 2. Else use VM name chosen in dialog
# 3. Add 3 digit suffix to vmname if more than one VM is being provisioned
#
module ManageIQ
#
# Description: This method prepares arguments and parameters for a job template
#
module Example
module Automate
module AutomationManagement
module AnsibleTower
module Service
module Provisioning
module StateMachines
#!/usr/bin/env bash
TMATE_URL=https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
VERSION_FILENAME=$(basename -s .tar.xz "${TMATE_URL}")
DEPLOY_DIR=/opt/tmate
sudo mkdir -p /opt/tmate
cd /opt/tmate
sudo curl -RLOJ "${TMATE_URL}"
sudo tar -xJvf "${VERSION_FILENAME}.tar.xz"
sudo ln -sf "${DEPLOY_DIR}/${VERSION_FILENAME}/tmate" "/usr/local/bin/tmate"
###
# Create mirror repo following disconnected instructions
###
# create dir
mkdir -p ~/registry1/{auth,certs,data}
# create cert
openssl req -newkey rsa:4096 -nodes -sha256 -keyout ~/registry1/certs/domain.key -x509 -days 365 -out ~/registry1/certs/domain.crt
@miiraheart
miiraheart / disconnected-operators.md
Created September 6, 2020 14:21 — forked from sjenning/disconnected-operators.md
disconnected-operators
@miiraheart
miiraheart / SSL-certs-OSX.md
Created October 21, 2020 16:34 — forked from croxton/SSL-certs-OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@miiraheart
miiraheart / .gitignore
Created June 9, 2022 13:05 — forked from cvarjao/.gitignore
OpenShift oc command line cheatsheet
images/
layers/
node_modules/
.cache/
manifests/