├── dev ├── test ├── event_test ├── event_test2 ├── CODEOWNERS ├── README.md ├── Puppetfile ├── manifests └── site.pp └── Jenkinsfile /dev: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /event_test: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /event_test2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Setting ownership to the cd4pe team 2 | * @puppetlabs/cd4pe 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pe_acceptance_tests-control 2 | 3 | This is the control repo for use in pe_acceptance_tests. Currently only used for testing agent upgrades. 4 | 5 | 6 | -------------------------------------------------------------------------------- /Puppetfile: -------------------------------------------------------------------------------- 1 | mod 'puppetlabs-puppet_authorization', '0.4.0' 2 | mod 'puppetlabs-stdlib', '4.25.1' 3 | mod 'puppetlabs-inifile', '2.3.0' 4 | mod 'puppetlabs-hocon', '1.0.1' 5 | mod 'puppetlabs-concat', '4.2.1' 6 | mod 'cd4pe', 7 | :git => 'git@github.com:puppetlabs/puppetlabs-cd4pe.git', 8 | :ref => 'master' 9 | -------------------------------------------------------------------------------- /manifests/site.pp: -------------------------------------------------------------------------------- 1 | ## site.pp ## 2 | 3 | # This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point 4 | # used when an agent connects to a master and asks for an updated configuration. 5 | # 6 | # Global objects like filebuckets and resource defaults should go in this file, 7 | # as should the default node definition. (The default node can be omitted 8 | # if you use the console and don't define any other nodes in site.pp. See 9 | # http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on 10 | # node definitions.) 11 | 12 | ## Active Configurations ## 13 | 14 | # PRIMARY FILEBUCKET 15 | # This configures puppet agent and puppet inspect to back up file contents when 16 | # they run. The Puppet Enterprise console needs this to display file contents 17 | # and differences. 18 | 19 | # Define filebucket 'main': 20 | filebucket { 'main': 21 | server => $::servername, 22 | path => false, 23 | } 24 | 25 | # Make filebucket 'main' the default backup location for all File resources: 26 | File { backup => 'main' } 27 | 28 | 29 | # DEFAULT NODE 30 | # Node definitions in this file are merged with node data from the console. See 31 | # http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on 32 | # node definitions. 33 | 34 | # The default node definition matches any node lacking a more specific node 35 | # definition. If there are no other nodes in this file, classes declared here 36 | # will be included in every node's catalog, *in addition* to any classes 37 | # specified in the console for that node. 38 | 39 | node default { 40 | # This is where you can declare classes for all nodes. 41 | # Example: 42 | # class { 'my_class': } 43 | notify { "Hello world!": message => "I am in the ${environment} environment"} 44 | } 45 | -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | node('worker') { 2 | stage('Checkout') { 3 | checkout scm 4 | } 5 | 6 | stage('Mirror') { 7 | withCredentials([file(credentialsId: 'CDPE_GIT_SSH_KEY', variable: 'CDPE_SSH_KEY')]) { 8 | sh '''#!/bin/bash 9 | echo 'ssh -i '"${CDPE_SSH_KEY}"' $*' > ssh 10 | chmod +x ssh 11 | export GIT_SSH='./ssh' 12 | git checkout master 13 | 14 | echo 'pushing to gitlab' 15 | git remote add gitlab git@cdpe-gitlab-test-1.delivery.puppetlabs.net:cdpe_unit_tests/cdpe-2017-3-pe-master-1-control.git || true 16 | git push gitlab ${BRANCH_NAME} -f 17 | 18 | echo 'pushing to ado' 19 | git remote add ado git@ssh.dev.azure.com:v3/cd4peAzureDevOpsTest/CD4PE%20Azure%20DevOps%20Test%20Project/cdpe-tests-control-repo || true 20 | git push ado ${BRANCH_NAME} -f 21 | 22 | echo 'pushing to bitbucket-server' 23 | git remote add bitbucket ssh://git@cdpe-bitbucket-test-1.delivery.puppetlabs.net:7999/tes/cdpe-2018-1-pe-master-2-control.git || true 24 | git push bitbucket ${BRANCH_NAME} -f 25 | 26 | echo 'pushing to bitbucket-cloud' 27 | git remote add bitbucket-cloud git@bitbucket.org:cd4peteam/control-repo.git || true 28 | git push bitbucket-cloud ${BRANCH_NAME} -f 29 | 30 | echo 'pushing to bitbucket-cloud' 31 | git remote add github git@github.com:puppet-pipelines-tester/cdpe-2018-1-pe-master-1-control.git || true 32 | git push github ${BRANCH_NAME} -f 33 | 34 | echo 'pushing to bitbucket-cloud' 35 | git remote add githubenterprise git@cdpe-github-enterprise-test-1.delivery.puppetlabs.net:RDM-Integration-tests/cdpe-2018-1-pe-master-3-control.git || true 36 | git push githubenterprise ${BRANCH_NAME} -f 37 | ''' 38 | } 39 | } 40 | } 41 | --------------------------------------------------------------------------------