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
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "title": "NetBox API", | |
| "description": "", | |
| "version": "" | |
| }, | |
| "host": "netbox-dev.mgmt.innovo-cloud.de", | |
| "schemes": [ | |
| "https" |
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
| --- | |
| # NOTE: This should be a role (or custom module), but currently include_role is too buggy to use | |
| - name: "sync_file | Set facts for directory and file when sync_file_path is defined" | |
| set_fact: | |
| sync_file_dir: "{{ sync_file_path | dirname }}" | |
| sync_file: "{{ sync_file_path | basename }}" | |
| when: sync_file_path is defined and sync_file_path != '' | |
| - name: "sync_file | Set fact for sync_file_path when undefined" |
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
| > ansible-playbook --version | |
| ansible-playbook 2.5.1 | |
| > ansible-playbook blah.yml | |
| PLAY [local testing] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************* | |
| TASK [test set_fact] ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************* | |
| ok: [localhost] => (item={u'path': u'/etc/kubernetes/ssl/apiserver.pem', u'no_srcs': True, u'sync_unneeded': False}) | |
| ok: [localhost] => (item={u'path': u'/etc/kubernetes/ssl/kube-scheduler.pem', u'no_srcs': True |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os/exec" | |
| "path" |
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
| type OpenstackClusterProviderSpec struct { | |
| metav1.TypeMeta `json:",inline"` | |
| metav1.ObjectMeta `json:"metadata,omitempty"` | |
| Spec ClusterSpec `json:"spec,omitempty"` | |
| } | |
| type ClusterSpec struct { | |
| // NodeCIDR is the OpenStack Subnet to be created | |
| NodeCIDR string `json:"nodeCidr,omitempty"` |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/user" | |
| "path/filepath" |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/gophercloud/gophercloud" | |
| "github.com/gophercloud/gophercloud/openstack" | |
| "github.com/gophercloud/gophercloud/openstack/compute/v2/servers" | |
| "github.com/gophercloud/utils/openstack/clientconfig" |
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
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: oc-admin | |
| namespace: default | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: oc-admin |
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
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| labels: | |
| app: debugging | |
| name: debugging | |
| spec: | |
| revisionHistoryLimit: 2 | |
| selector: | |
| matchLabels: |
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
| #!/bin/bash | |
| # This script shuts down a rook-ceph cluster | |
| # Please DON'T use this. It is only for demonstration purposes. | |
| set -eux -o pipefail | |
| force=false | |
| while getopts "f" arg; do | |
| case $arg in | |
| f) | |
| force=true |