nubisproject / nubis-docker-deploy

Mozilla Public License 2.0
0 stars 3 forks source link

Integrate New Relic Synthetics into deploy container #76

Open tinnightcap opened 6 years ago

tinnightcap commented 6 years ago

The following code was used in Jenkins to set up NR Synthetics. Needs to be re-implemented in Docker.

notice ("Grabbing Terraform Newrelic Synthecit plugin ${terraform_nrs_version}")

$terraform_nrs_url = "https://github.com/gozer/terraform-provider-nrs/releases/download/${terraform_nrs_version}/terraform-provider-nrs_linux-amd64"
staging::file { '/usr/local/bin/terraform-provider-nrs':
  source => $terraform_nrs_url,
  target => '/usr/local/bin/terraform-provider-nrs',
}
->exec { 'chmod /usr/local/bin/terraform-provider-nrs':
  command => '/bin/chmod 755 /usr/local/bin/terraform-provider-nrs',
}

file { '/var/lib/jenkins/.terraformrc':
  require => [
    Class['jenkins'],
    Staging::File['/usr/local/bin/terraform-provider-nrs'],
  ],
  owner   => 'jenkins',
  group   => 'jenkins',
  mode    => '0640',
  content => '
providers {
    nrs = "/usr/local/bin/terraform-provider-nrs"
}
',
}
tinnightcap commented 6 years ago

$terraform_nrs_version = '0.2.0-gozer'