diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 39c8161..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env groovy - -// This is a template Jenkinsfile for builds and the automated release project - -// Automated release, promotion and dependencies -properties([ - // Include the automated release parameters for the build - release.addParams(), - // Dependencies of the project that should trigger builds - dependencies(['cyberark/conjur-base-image', 'cyberark/conjur-api-ruby']) -]) - -// Performs release promotion. No other stages will be run -if (params.MODE == "PROMOTE") { - release.promote(params.VERSION_TO_PROMOTE) { sourceVersion, targetVersion, assetDirectory -> - // Any assets from sourceVersion Github release are available in assetDirectory - // Any version number updates from sourceVersion to targetVersion occur here - // Any publishing of targetVersion artifacts occur here - // Anything added to assetDirectory will be attached to the Github Release - } - return -} - -pipeline { - agent { label 'executor-v2' } - - options { - timestamps() - buildDiscarder(logRotator(numToKeepStr: '30')) - } - - triggers { - cron(getDailyCronString()) - } - - environment { - // Sets the MODE to the specified or autocalculated value as appropriate - MODE = release.canonicalizeMode() - } - - stages { - // Aborts any builds triggered by another project that wouldn't include any changes - stage ("Skip build if triggering job didn't create a release") { - when { - expression { - MODE == "SKIP" - } - } - steps { - script { - currentBuild.result = 'ABORTED' - error("Aborting build because this build was triggered from upstream, but no release was built") - } - } - } - // Generates a VERSION file based on the current build number and latest version in CHANGELOG.md - stage('Validate Changelog and set version') { - steps { - updateVersion("CHANGELOG.md", "${BUILD_NUMBER}") - } - } - - stage('Build') { - steps { - // Perform any builds here - } - } - - stage('Test') { - steps { - // Perform any testing here - } - } - - stage('Release') { - when { - expression { - MODE == "RELEASE" - } - } - - steps { - release { billOfMaterialsDirectory, assetDirectory -> - // Publish release artifacts to all the appropriate locations - // Copy any artifacts to assetDirectory to attach them to the Github release - } - } - } - } - - post { - always { - cleanupAndNotify(currentBuild.currentResult) - } - } -} diff --git a/docs/index.md b/docs/index.md index 2a9ed46..2ffc7e8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,19 +1,19 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "cyberarkapi Provider" +page_title: "cyberark Provider" subcategory: "" description: |- Configure tenant used to onboard account types into CyberArk Privilege Cloud Vault --- -# cyberarkapi Provider +# cyberark Provider Configure tenant used to onboard account types into CyberArk Privilege Cloud Vault ## Example Usage ```terraform -provider "cyberarkapi" { +provider "cyberark" { tenant = "aarp0000" domain = "example-domain" clientid = "automation@cyberark.cloud.aarp0000" diff --git a/docs/resources/awsaccount.md b/docs/resources/awsaccount.md index 5af5cf1..9a1d407 100644 --- a/docs/resources/awsaccount.md +++ b/docs/resources/awsaccount.md @@ -10,24 +10,7 @@ description: |- AWS Account Resource -## Example Usage - -```terraform -resource "cyberark_awsaccount" "awskey" { - name = "user-aws" - username = "user-aws" - platform = "AWS_TF" - safe = "TF_TEST_SAFE" - secrettype = "key" - secret = "secret_key" - sm_manage = false - sm_manage_reason = "No CPM Associated with Safe." - aws_kid = "9876543210" - aws_accountid = "0123456789" - aws_alias = "aws_alias" - aws_accountregion = "us-east-2" -} -``` + ## Schema diff --git a/docs/resources/dbaccount.md b/docs/resources/dbaccount.md index 459eb94..5bb2369 100644 --- a/docs/resources/dbaccount.md +++ b/docs/resources/dbaccount.md @@ -10,24 +10,7 @@ description: |- Database Account Resource -## Example Usage - -```terraform -resource "cyberark_dbaccount" "pgdb" { - name = "user-db" - address = "1.2.3.4" - username = "user-db" - platform = "PROD_PostgreSQL" - safe = "TF_TEST_SAFE" - secrettype = "password" - secret = "SincerelySecure2#24!" - sm_manage = false - sm_manage_reason = "No CPM Associated with Safe." - db_port = "8432" - db_dsn = "dsn" - dbname = "dbo.services" -} -``` + ## Schema diff --git a/docs/resources/msaccount.md b/docs/resources/msaccount.md index d1bc8f6..5f0cd7e 100644 --- a/docs/resources/msaccount.md +++ b/docs/resources/msaccount.md @@ -10,28 +10,7 @@ description: |- Microsoft Azure Key Account Resource -## Example Usage -```terraform -resource "cyberark_msaccount" "mskey" { - name = "user-ms" - address = "1.2.3.4" - username = "user-ms" - platform = "MS_TF" - safe = "TF_TEST_SAFE" - secrettype = "password" - secret = "SincerelySecure2#24!" - sm_manage = false - sm_manage_reason = "No CPM Associated with Safe." - ms_appid = "ApplicationID" - ms_appobjid = "ApplicationObjectID" - ms_keyid = "KeyID" - ms_adid = "ADKeyID" - ms_duration = "300" - ms_pop = "yes" - ms_keydesc = "key descriptiong with spaces" -} -``` ## Schema diff --git a/examples/resources/cyberarkapi_awsaccount/resource.tf b/examples/resources/cyberark_awsaccount/resource.tf similarity index 100% rename from examples/resources/cyberarkapi_awsaccount/resource.tf rename to examples/resources/cyberark_awsaccount/resource.tf diff --git a/examples/resources/cyberarkapi_dbaccount/resource.tf b/examples/resources/cyberark_dbaccount/resource.tf similarity index 100% rename from examples/resources/cyberarkapi_dbaccount/resource.tf rename to examples/resources/cyberark_dbaccount/resource.tf diff --git a/examples/resources/cyberarkapi_msaccount/resource.tf b/examples/resources/cyberark_msaccount/resource.tf similarity index 100% rename from examples/resources/cyberarkapi_msaccount/resource.tf rename to examples/resources/cyberark_msaccount/resource.tf