Skip to content

Instantly share code, notes, and snippets.

View mjmenger's full-sized avatar

Mark Menger mjmenger

View GitHub Profile
@mjmenger
mjmenger / is-bigip-there.rb
Last active August 18, 2021 02:14
Inspec samples
# copyright: 2018, The Authors
title "3-nic example tests"
require_controls 'inspec-bigip' do
control 'bigip-connectivity'
#control 'bigip-licensed'
#control 'bigip-declarative-onboarding'
#control 'bigip-declarative-onboarding-version'
#control 'bigip-application-services'
@mjmenger
mjmenger / extend.md
Last active December 27, 2022 21:29
extend a partition on linux

using parted

parted
(parted) print
(parted) resizepart

partition number? probably get warned about the partition being used... be strong set the end to the biggest number you can think of

@mjmenger
mjmenger / collab.md
Last active October 15, 2020 20:29
collaboration environment setup

https://github.com/cdr/code-server/blob/v3.6.0/doc/install.md

The docker run command below references version 3.6.0 of coder. You can check codercom's docker hub for later versions.

TODO: figure out how to create and specify another user

make certain you change to the project directory before running this command. In addition, the SERVICE_URL and ITEM_URL are optional environment variables that point to the Open VSX Registry.

mkdir -p ~/.coderconfig
@mjmenger
mjmenger / crash.log
Created September 30, 2020 19:19
Terraform crash
This file has been truncated, but you can view the full file.
2020/09/30 19:03:14 [INFO] Terraform version: 0.13.1
2020/09/30 19:03:14 [INFO] Go runtime version: go1.14.7
2020/09/30 19:03:14 [INFO] CLI args: []string{"/home/userhome/.terraform.versions/terraform_0.13.1", "plan"}
2020/09/30 19:03:14 [DEBUG] Attempting to open CLI config file: /home/userhome/.terraformrc
2020/09/30 19:03:14 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/09/30 19:03:14 Loading CLI configuration from /home/userhome/.terraform.d/credentials.tfrc.json
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory /home/userhome/.terraform.d/plugins
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory /home/userhome/.local/share/terraform/plugins
2020/09/30 19:03:14 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
@mjmenger
mjmenger / manage-bigips-in-azure-with-terraform-cloud.markdown
Last active July 31, 2020 16:49
BIG-IP and Terraform Cloud on Azure overview
layout post
title Manage F5 BIG-IPs in Azure with Terraform Cloud
date 2020-07-29 07:30:00 -0800
tags big-ip automation hashicorp terraform devops

Introduction

IT Industry research, such as Accelerate, shows improving a company's ability to deliver software is critical to their overall success. The following key practices and design principles are cornerstones to that improvement.

  • Version control of code and configuration
  • Automation of Deployment
@mjmenger
mjmenger / bigipconf.sh
Created July 6, 2020 17:25
BIG-IP Bash config
################################################
## BashSRG - Bash STIG/SRG configuration Script
## Michael Coleman. [email protected]
## Modified by [email protected]
## Modified by [email protected] July 6, 2020 - removed/commented gov requirements
################################################
#!/bin/sh
###change 1
@mjmenger
mjmenger / fixmainbranch.sh
Last active June 15, 2020 00:22
fixmainbranch
# there's no need to call the primary branch master
git checkout master
git branch -m main
git push origin -u main
git push origin --delete master
@mjmenger
mjmenger / f5cloudservices.http
Last active May 20, 2020 01:06
VS Code Rest Client calls for F5 Cloud Services
@apihost = {{$dotenv cloudsvcsapihost}}
@apiversion = {{$dotenv cloudsvcsapiversion}}
@user = {{$dotenv cloudsvcsuser}}
@password = {{$dotenv cloudsvcspassword}}
@dnswebadmin = {{$dotenv cloudsvcsdnswebadmin}}
# The REST calls below come from https://github.com/f5devcentral/f5-cloudservicelab
# For more detailed instructions refer to its README
###
#cloud-config
#bootcmd (lines 2-19) can be removed when https://github.com/F5Networks/f5-declarative-onboarding/issues/129 is resolved.
bootcmd:
- touch /var/tmp/bootcmd_start
- touch /config/custom-config.sh
- echo "#!/bin/bash" >> /config/custom-config.sh
- echo "touch /var/tmp/write_files_start" >> /config/custom-config.sh
- echo "# Wait for MCPD to be up before running tmsh commands" >> /config/custom-config.sh
- echo "source /usr/lib/bigstart/bigip-ready-functions" >> /config/custom-config.sh
- echo "wait_bigip_ready" >> /config/custom-config.sh
@mjmenger
mjmenger / .bash_aliases
Last active May 1, 2025 22:52
bash aliases I like to have available
# Terraform aliases
# adding time to the commands because I'm very interested
# in how long these activities take with more complex builds
# across disparate platforms
alias tfi='terraform init'
alias tfp='time terraform plan'
alias tfa='time terraform apply'
alias tfaa='time terraform apply -auto-approve '
alias tfd='time terraform destroy'
alias tfda='time terraform destroy -auto-approve '