From 0812b03d579d4822d0bb17dee97f4163c90c1375 Mon Sep 17 00:00:00 2001 From: Sergey Kraynev Date: Thu, 21 Jul 2016 11:03:48 +0300 Subject: [PATCH] Move all *.sh and *.pp files to scripts directories Change-Id: I15bd9e9da742ec3f99574316fa0ec82c2608f0ec --- murano-apps/Gerrit/package/Classes/Gerrit.yaml | 2 +- .../package/Resources/{ => scripts}/create_gerrit_labels.sh | 0 murano-apps/Nodepool/package/Classes/Nodepool.yaml | 2 +- .../package/Resources/{ => scripts}/get_api_token.sh | 0 murano-apps/Zuul/package/Classes/Zuul.yaml | 6 +++--- .../{ => scripts}/switch_to_local_project_config.sh | 0 .../Zuul/package/Resources/{ => scripts}/update_layout.pp | 0 .../Zuul/package/Resources/{ => scripts}/update_layout.sh | 0 8 files changed, 5 insertions(+), 5 deletions(-) rename murano-apps/Gerrit/package/Resources/{ => scripts}/create_gerrit_labels.sh (100%) rename murano-apps/Nodepool/package/Resources/{ => scripts}/get_api_token.sh (100%) rename murano-apps/Zuul/package/Resources/{ => scripts}/switch_to_local_project_config.sh (100%) rename murano-apps/Zuul/package/Resources/{ => scripts}/update_layout.pp (100%) rename murano-apps/Zuul/package/Resources/{ => scripts}/update_layout.sh (100%) diff --git a/murano-apps/Gerrit/package/Classes/Gerrit.yaml b/murano-apps/Gerrit/package/Classes/Gerrit.yaml index 31954bb..54ede09 100644 --- a/murano-apps/Gerrit/package/Classes/Gerrit.yaml +++ b/murano-apps/Gerrit/package/Classes/Gerrit.yaml @@ -212,7 +212,7 @@ Methods: - $linux: new(conf:Linux) - $resource: new(sys:Resources) - - $script: $resource.string('create_gerrit_labels.sh') + - $script: $resource.string('scripts/create_gerrit_labels.sh') - $linux.runCommand($.instance.agent, $script) - $._environment.reporter.report($this, 'Label "Verified" is successfully created.') diff --git a/murano-apps/Gerrit/package/Resources/create_gerrit_labels.sh b/murano-apps/Gerrit/package/Resources/scripts/create_gerrit_labels.sh similarity index 100% rename from murano-apps/Gerrit/package/Resources/create_gerrit_labels.sh rename to murano-apps/Gerrit/package/Resources/scripts/create_gerrit_labels.sh diff --git a/murano-apps/Nodepool/package/Classes/Nodepool.yaml b/murano-apps/Nodepool/package/Classes/Nodepool.yaml index 0d150bc..4f8bc4a 100644 --- a/murano-apps/Nodepool/package/Classes/Nodepool.yaml +++ b/murano-apps/Nodepool/package/Classes/Nodepool.yaml @@ -94,7 +94,7 @@ Methods: "%USERNAME%": $.jenkins.ldap.ldapRootUser "%PASSWORD%": $.jenkins.ldap.ldapRootPass "%JENKINS_HOST%": $jenkinsHost - - $script: $resource.string('get_api_token.sh').replace($replacements) + - $script: $resource.string('scripts/get_api_token.sh').replace($replacements) - $apiKey: $linux.runCommand($.instance.agent, $script).stdout - $credentialsId: $.jenkins.configureCredentials() diff --git a/murano-apps/Nodepool/package/Resources/get_api_token.sh b/murano-apps/Nodepool/package/Resources/scripts/get_api_token.sh similarity index 100% rename from murano-apps/Nodepool/package/Resources/get_api_token.sh rename to murano-apps/Nodepool/package/Resources/scripts/get_api_token.sh diff --git a/murano-apps/Zuul/package/Classes/Zuul.yaml b/murano-apps/Zuul/package/Classes/Zuul.yaml index 8900543..6446274 100644 --- a/murano-apps/Zuul/package/Classes/Zuul.yaml +++ b/murano-apps/Zuul/package/Classes/Zuul.yaml @@ -97,7 +97,7 @@ Methods: Body: - $resources: new(sys:Resources) - $linux: new(conf:Linux) - - $script: $resources.string('switch_to_local_project_config.sh') + - $script: $resources.string('scripts/switch_to_local_project_config.sh') - $._environment.reporter.report($this, '[Zuul] Switching to project-config from installed Gerrit...') - $projectConfigURL: format( 'ssh://{0}@{1}:29418/open-paas/project-config', @@ -111,11 +111,11 @@ Methods: Body: - $resources: new(sys:Resources) - $linux: new(conf:Linux) - - $script: $resources.string('update_layout.sh') + - $script: $resources.string('scripts/update_layout.sh') - $._environment.reporter.report($this, '[Zuul] Creating autoupdating layout.yaml file...') - $linux.putFile($.instance.agent, $script, '/usr/local/bin/update_layout.sh') - - $manifest: $resources.string('update_layout.pp') + - $manifest: $resources.string('scripts/update_layout.pp') - $this.instance.applyManifest($manifest, 60) destroy: diff --git a/murano-apps/Zuul/package/Resources/switch_to_local_project_config.sh b/murano-apps/Zuul/package/Resources/scripts/switch_to_local_project_config.sh similarity index 100% rename from murano-apps/Zuul/package/Resources/switch_to_local_project_config.sh rename to murano-apps/Zuul/package/Resources/scripts/switch_to_local_project_config.sh diff --git a/murano-apps/Zuul/package/Resources/update_layout.pp b/murano-apps/Zuul/package/Resources/scripts/update_layout.pp similarity index 100% rename from murano-apps/Zuul/package/Resources/update_layout.pp rename to murano-apps/Zuul/package/Resources/scripts/update_layout.pp diff --git a/murano-apps/Zuul/package/Resources/update_layout.sh b/murano-apps/Zuul/package/Resources/scripts/update_layout.sh similarity index 100% rename from murano-apps/Zuul/package/Resources/update_layout.sh rename to murano-apps/Zuul/package/Resources/scripts/update_layout.sh