aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/compute-config.yaml
blob: 9e128d3a89550fe33e7a31c4ef5c4a395ee3000c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
heat_template_version: 2015-04-30

description: >
  A software config which runs manifests/overcloud_compute.pp

parameters:
  ConfigDebug:
    default: false
    description: Whether to run config management (e.g. Puppet) in debug mode.
    type: boolean
  StepConfig:
     type: string
     description: Config manifests that will be used to step through the deployment.
     default: ''

resources:

  ComputePuppetConfigImpl:
    type: OS::Heat::SoftwareConfig
    properties:
      group: puppet
      options:
        enable_debug: {get_param: ConfigDebug}
        enable_hiera: True
        enable_facter: False
        modulepath: /etc/puppet/modules:/opt/stack/puppet-modules:/usr/share/openstack-puppet/modules
      outputs:
      - name: result
      config:
        list_join:
        - ''
        - - get_file: manifests/overcloud_compute.pp
          - {get_param: StepConfig}

outputs:
  OS::stack_id:
    description: The software config which runs overcloud_controller.pp
    value: {get_resource: ComputePuppetConfigImpl}
">for project in functest vswitchperf do for index in $(gsutil ls -l gs://artifacts.opnfv.org/logs/"$project"/ |awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,, ) do index="$(echo ${index%/*} | sed s,/,_,g)" echo "<LI><a href=\"https://artifacts.opnfv.org/${index%/*}.html\">"$index"</a></LI>" >> $OUTPUT done done #End step 1 ##################################### #genrate html files for all project except vswitchperf for index in $(gsutil ls -l gs://artifacts.opnfv.org | grep -v logs |awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,,) do OUTPUT=${index%/*}.html rm -f $OUTPUT for filepath in $(gsutil ls -R gs://artifacts.opnfv.org/"$index" | sed s,gs://artifacts.opnfv.org/,, | grep -v "favicon.ico" | grep -v "gsutil" ); do echo $filepath if [[ $filepath =~ "/:" ]]; then path=$(echo $filepath| sed s,/:,,g) echo "<UL>" >> $OUTPUT echo "<LI>$path</LI>" >> $OUTPUT echo "</UL>" >> $OUTPUT else echo "<LI><a href=\"https://artifacts.opnfv.org/$filepath\">"$filepath"</a></LI>" >> $OUTPUT fi done gsutil cp $OUTPUT gs://artifacts.opnfv.org/ gsutil -m setmeta \ -h "Content-Type:text/html" \ -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/$OUTPUT \ done #generate file for vswitch perf (I dont know what happend here but there is a wierd character in this bucket) index=vswitchperf OUTPUT=${index%/*}.html rm -f $OUTPUT for filepath in $(gsutil ls -R gs://artifacts.opnfv.org/"$index" | sed s,gs://artifacts.opnfv.org/,, | grep -v "favicon.ico" | grep -v "gsutil" ); do echo $filepath if [[ $filepath =~ "/:" ]]; then path=$(echo $filepath| sed s,/:,,g) echo "<UL>" >> $OUTPUT echo "<LI>$path</LI>" >> $OUTPUT echo "</UL>" >> $OUTPUT else echo "<LI><a href=\"https://artifacts.opnfv.org/$filepath\">"$filepath"</a></LI>" >> $OUTPUT fi done gsutil cp $OUTPUT gs://artifacts.opnfv.org/ gsutil -m setmeta \ -h "Content-Type:text/html" \ -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/$OUTPUT \ # Gerate html for logs for project in functest vswitchperf do for index in $(gsutil ls -l gs://artifacts.opnfv.org/logs/"$project"/ |awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,, ) do OUTPUT="$(echo ${index%/*}.html | sed s,/,_,g)" echo $OUTPUT rm -f $OUTPUT for filepath in $(gsutil ls -R gs://artifacts.opnfv.org/"$index" | sed s,gs://artifacts.opnfv.org/,, | grep -v "favicon.ico" | grep -v "gsutil" ); do echo $filepath if [[ $filepath =~ "/:" ]]; then path=$(echo $filepath| sed s,/:,,g) echo "<UL>" >> $OUTPUT echo "<LI>$path</LI>" >> $OUTPUT echo "</UL>" >> $OUTPUT else echo "<LI><a href=\"https://artifacts.opnfv.org/$filepath\">"$filepath"</a></LI>" >> $OUTPUT fi done gsutil cp $OUTPUT gs://artifacts.opnfv.org/ gsutil -m setmeta \ -h "Content-Type:text/html" \ -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/$OUTPUT \ done done OUTPUT="index.html" echo "<p> Generated on $(date) </p>" >> $OUTPUT cat <<EOF >> $OUTPUT <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-831873-26', 'auto'); ga('send', 'pageview'); </script> EOF #copy and uplad index file genrated in first step, last gsutil cp $OUTPUT gs://artifacts.opnfv.org/ gsutil -m setmeta \ -h "Content-Type:text/html" \ -h "Cache-Control:private, max-age=0, no-transform" \ gs://artifacts.opnfv.org/$OUTPUT \