Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am simonmcc on github.
  • I am simonmcc (https://keybase.io/simonmcc) on keybase.
  • I have a public key ASBEKC62w8w4jWOsNyaP8TMsXfxv1CJ4J60xJpLVPfSqogo

To claim this, I am signing this object:

smccartney@UKBEL-MLSRSM:terraform-for-each-azuread $ terraform apply
random_string.temp_password2: Refreshing state... [id=XXXXXXX]
azuread_user.users["smccartney_test3"]: Refreshing state... [id=ef9b0f5b-d45e-4d17-baa5-940b4bd76b8b]
azuread_user.users["smccartney_test2"]: Refreshing state... [id=152babc5-6207-41bf-8d6d-6e703221ccc5]
azuread_user.users["smccartney_test1"]: Refreshing state... [id=d84f95f2-b809-424d-a220-9b28379199e6]
azuread_group.SuperUsers_XXX: Refreshing state... [id=d80bd449-448b-42d8-ae64-bc3cb7bcbeb8]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
smccartney@UKBEL-MLSRSM:terraform-for-each-azuread $ terraform apply
random_string.temp_password2: Refreshing state... [id=XXXXXX]
azuread_user.users["smccartney_test2"]: Refreshing state... [id=152babc5-6207-41bf-8d6d-6e703221ccc5]
azuread_user.users["smccartney_test1"]: Refreshing state... [id=d84f95f2-b809-424d-a220-9b28379199e6]
azuread_group.SuperUsers_XXX: Refreshing state... [id=d80bd449-448b-42d8-ae64-bc3cb7bcbeb8]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
smccartney@UKBEL-MLSRSM:terraform-for-each-azuread $ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azuread_group.SuperUsers_XXX will be created
+ resource "azuread_group" "SuperUsers_XXX" {
@simonmcc
simonmcc / gist:29071aade32012f186ed8273ff1442ed
Last active February 5, 2019 23:53
Running a Jenkins post stage in a docker container
pipeline {
agent none
stages {
stage('Step1'){
agent { docker { image 'simonmcc/hashicorp-pipeline:latest' } }
steps {
echo "Hello from Step1"
}
}
stage('Stage2') {
A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
Stack trace
while parsing a block mapping
in /opt/jenkins/jenkins_casc.yml, line 28, column 7:
domainCredentials:
^
expected <block end>, but found '-'
in /opt/jenkins/jenkins_casc.yml, line 30, column 7:
driver:
name: vagrant
network:
- ["private_network", {ip: "192.168.33.33"}]
- ["private_network", {ip: "fddd:0001:85a3::8a2e:370:7334"}]
provisioner:
name: chef_zero
platforms:
smccartney@elitebook820:vagrant-bento-ubuntu-16.04 $ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Adapter 3: hostonly
==> default: Forwarding ports...
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "private_network", ip: "2001:db8:85a3::8a2e:370:7334"
end
#!/usr/bin/perl
use strict;
use warnings;
use Net::DNS;
use DBI;
my $samplesize = 100;
my %results = ();