- ext4 (/var/opt/opscode/drbd/data)
- drbd device (pc0)
- LVM Logical Volume (/dev/opscode/data)
- LVM Volume Group (opscode)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are an AI that creates Honeycomb Derived Columns from natural language. | |
| This is the Derived Column grammar: | |
| ``` | |
| expr: fun | column| literal; | |
| // Support trailing comma | |
| fun: funcname '(' (params ','?)? ')'; | |
| params: expr (',' params)?; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Original source: https://github.com/sqlfluff/sqlfluff-github-actions/blob/main/menu_of_workflows/surfline/sqlfluff_lint_dbt_models.yml | |
| name: SQLFluff lint dbt data models | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ssh key generator data source expects the below 3 inputs, and produces 3 outputs for use: | |
| # "${data.external.ssh_key_generator.result.public_key}" (contents) | |
| # "${data.external.ssh_key_generator.result.private_key}" (contents) | |
| # "${data.external.ssh_key_generator.result.private_key_file}" (path) | |
| data "external" "ssh_key_generator" { | |
| program = ["bash", "${path.root}/../ssh_key_generator.sh"] | |
| query = { | |
| customer_name = "${var.customer_name}" | |
| customer_group = "${var.customer_group}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # usage: hny-column-cleanup.py [-h] -k API_KEY -d DATASET [-m {hidden,spammy}] | |
| # Honeycomb Dataset Column Cleanup tool | |
| # arguments: | |
| # -h, --help show this help message and exit | |
| # -k API_KEY, --api-key API_KEY | |
| # Honeycomb API key | |
| # -d DATASET, --dataset DATASET | |
| # Honeycomb Dataset |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| # Your LEGACY Slack API token | |
| SLACK_API_TOKEN = "xoxp-my-slack-legacy-token" | |
| def get_channel_list(): | |
| """ | |
| Retrieves a list of available channels using the Slack API. | |
| """ | |
| url = "https://slack.com/api/conversations.list" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MY_INSTANCEID | |
| MY_SERVER | |
| user-data.txt | |
| .zshrc | |
| .gitconfig | |
| .ssh | |
| .byobu | |
| .oh-my-zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # replaces this file /opt/vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/providers/virtualbox/action/sane_defaults.rb | |
| # NOTE: if using a different Vagrant version, adjust the version field accordingly | |
| # NOTE2: only the sections with the IRVING comment have been changed from the default | |
| require "log4r" | |
| module VagrantPlugins | |
| module ProviderVirtualBox | |
| module Action | |
| class SaneDefaults |
Example output:
root@chef:~# ./chef_server_nodes_report.rb -h
Usage: chef_server_nodes_report.rb [options]
-g, --group-by TYPE Group results by: ["version", "org", "environment", "check_in_month", "check_in_date", "platform_family", "platform_version", "platform", "os"]
root@chef:~# ./chef_server_nodes_report.rb --group-by version
loading config from /etc/opscode
{
A customer has a Chef Server 12 (HA - DRBD) in Production. They want to test an in-place upgrade (or maintenance) using their current OPC Production data and config. This gives us a good chance to make corrections if we find that their data is too broken for the migrations to handle, and gives the customer experience in managing the upgrade in Production.
The sequence of events will broadly be these:
- Install the same version of Chef Server on the target HA Test cluster
- Restore data from Production instance backup (LVM snapshot or full-stop backup)
- Test
NewerOlder