Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate New Relic Synthetics into deploy container #76

Open
tinnightcap opened this issue Jun 27, 2018 · 1 comment
Open

Integrate New Relic Synthetics into deploy container #76

tinnightcap opened this issue Jun 27, 2018 · 1 comment
Assignees

Comments

@tinnightcap
Copy link
Contributor

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 tinnightcap self-assigned this Jun 27, 2018
@tinnightcap
Copy link
Contributor Author

$terraform_nrs_version = '0.2.0-gozer'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant