$ tar xvfz saml2pf9_0.2.1_Linux_x86_64.tar.gz
$ sudo install ./saml2pf9 /usr/local/bin
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: qadev-team-cluster-admin | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin | |
subjects: |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
# Customize all these values | |
# youre source/destination keys and | |
# configs will differ | |
BACKUPDIR="backups" | |
BACKUPLOG="./migration_backup.log" | |
RESTORELOG="./migration_restore.log" |
#!/usr/bin/env ruby | |
# Use this script if you have 3 or more Chef Organizations | |
# and wish to speed up restores by using parallelism. | |
require 'fileutils' | |
require 'optparse' | |
CONCURRENCY = 1 | |
BACKUP_LOG = "restore_#{Time.now.strftime('%m%d%Y%H%M')}.log".freeze |
# this is the secret used for encrypting/decryting encrypted databags | |
# https://docs.chef.io/data_bags.html#encrypt-a-data-bag-item | |
# defaults to /etc/chef/encrypted_data_bag_secret | |
encrypted_data_bag_secret '/path/to/file/with/secret' |
chef-zero
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/dna.json --chef-zero-port 8889
/tmp/client.rb
node_name "default-ubuntu-1604"
checksum_path "/tmp/checksums"
file_cache_path "/tmp/cache"
/etc/security/limits.conf | |
elasticsearch - nofile 65535 | |
elasticsearch - memlock unlimited | |
root - memlock unlimited |
#!/usr/bin/env ruby | |
require 'fileutils' | |
require 'optparse' | |
ARGV << '-h' if ARGV.length != 6 | |
$options = {} | |
OptionParser.new do |opts| |
Inspec Profile storage in Automate requires Automate >= 0.6.6, inspec >= 1.7.0 | |
# login via inspec cli with data collector token | |
inspec compliance login_automate https://automate-server.test --insecure true --user admin --dctoken 93a49a4f2482c64126f7b6015e6b0f30284287ee4054ff8807fb63d9cbd1c506 --ent brewinc | |
# get user token | |
delivery token -u jmiller -s automate-server.test -e brewinc | |
# login with user token | |
inspec compliance login_automate https://automate-server.test --insecure true --user jmiller --usertoken tzwlbWMtgBC0lo6sxkAYKSShxSJEohnU7IAE4NCUGCg= --ent brewinc |