<commit_before>#import node configs
- name: count deployed servers
  shell: . ~/stackrc && openstack server list -f csv | wc -l
  register: server_count
  become: yes
  become_user: "{{ rhosp_stack_user }}"
- block:
    - name: Create my_templates directory
      file: path=~/my_templates state=directory
    - name: Create nic-configs directory
      file: path=~/my_templates/nic-configs state=directory
    - name: copy tripleO templates
      shell: cp -rf /usr/share/openstack-tripleo-heat-templates/* ~/my_templates/
    #- name: create custom install configuration
    #  shell: >
    #    cat ~/my_templates/environments/network-isolation.yaml |
    #    sed '/Swift/Id' |
    #    sed '/Block/Id' |
    #    sed '$ a # NIC Configs for our roles\n  OS::TripleO::Compute::Net::SoftwareConfig: ../nic-configs/compute.yaml\n  OS::TripleO::Controller::Net::SoftwareConfig: ../nic-configs/controller.yaml\n  OS::TripleO::CephStorage::Net::SoftwareConfig: ../nic-configs/ceph-storage.yaml'
    #    > ~/my_templates/environments/network-custom.yaml
    - name: create custom install configuration
      template: src={{ item }}.j2 dest=~/my_templates/environments/{{ item }} mode=0644
      with_items:
        - custom-install.yaml
    - name: create first boot configuration
      template: src=firstboot-config.yaml.j2 dest=~/my_templates/firstboot-config.yaml mode=0644

    # - name: create post deploy osp networking fix
    #   template: src=fix_osp_neutron_bug_post_deployment.yaml.j2 dest=~/my_templates/extraconfig/post_deploy/default.yaml mode=0644

    - name: copy nic configs
      template: src={{ item }}.j2 dest=~/my_templates/nic-configs/{{ item }} mode=0644
      with_items:
        - "compute.yaml"
        - "controller.yaml"
  #- shell: . ~/stackrc && openstack overcloud deploy --templates --control-scale 1 --compute-scale 1 --neutron-tunnel-types vxlan --neutron-network-type vxlan
  #  become: yes
  #  become_user: "{{ rhosp_stack_user }}"
    - name: deploy overcloud (even more coffee!)
      shell: >
        . ~/stackrc && openstack overcloud deploy
        --templates
        --control-flavor control
        --compute-flavor compute
        --control-scale 1
        --compute-scale 2
        --neutron-tunnel-types vxlan
        --neutron-network-type vxlan
        --ntp-server {{ infrastructure_address_ntp_server }}
      #  -e ~/my_templates/fix_osp_neutron_bug_post_deployment.yaml<commit_msg>fix erroneous merge<commit_after>#import node configs
- name: count deployed servers
  shell: . ~/stackrc && openstack server list -f csv | wc -l
  register: server_count
  become: yes
  become_user: "{{ rhosp_stack_user }}"
- block:
    - name: Create my_templates directory
      file: path=~/my_templates state=directory
    - name: Create nic-configs directory
      file: path=~/my_templates/nic-configs state=directory
    - name: copy tripleO templates
      shell: cp -rf /usr/share/openstack-tripleo-heat-templates/* ~/my_templates/
    #- name: create custom install configuration
    #  shell: >
    #    cat ~/my_templates/environments/network-isolation.yaml |
    #    sed '/Swift/Id' |
    #    sed '/Block/Id' |
    #    sed '$ a # NIC Configs for our roles\n  OS::TripleO::Compute::Net::SoftwareConfig: ../nic-configs/compute.yaml\n  OS::TripleO::Controller::Net::SoftwareConfig: ../nic-configs/controller.yaml\n  OS::TripleO::CephStorage::Net::SoftwareConfig: ../nic-configs/ceph-storage.yaml'
    #    > ~/my_templates/environments/network-custom.yaml
    - name: create custom install configuration
      template: src={{ item }}.j2 dest=~/my_templates/environments/{{ item }} mode=0644
      with_items:
        - custom-install.yaml
    - name: create first boot configuration
      template: src=firstboot-config.yaml.j2 dest=~/my_templates/firstboot-config.yaml mode=0644

    # - name: create post deploy osp networking fix
    #   template: src=fix_osp_neutron_bug_post_deployment.yaml.j2 dest=~/my_templates/extraconfig/post_deploy/default.yaml mode=0644

    - name: copy nic configs
      template: src={{ item }}.j2 dest=~/my_templates/nic-configs/{{ item }} mode=0644
      with_items:
        - "compute.yaml"
        - "controller.yaml"
  #- shell: . ~/stackrc && openstack overcloud deploy --templates --control-scale 1 --compute-scale 1 --neutron-tunnel-types vxlan --neutron-network-type vxlan
  #  become: yes
  #  become_user: "{{ rhosp_stack_user }}"
    - name: deploy overcloud (even more coffee!)
      shell: >
        . ~/stackrc && openstack overcloud deploy
        --templates
        --control-flavor control
        --compute-flavor compute
        --control-scale 1
        --compute-scale 2
        --neutron-tunnel-types vxlan
        --neutron-network-type vxlan
        --ntp-server {{ infrastructure_address_ntp_server }}
{'fraction_non_alphanumeric': 0.12718204488778054, 'fraction_numerical': 0.00997506234413965, 'mean_word_length': 2.9161920260374288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4043366', 'n_tokens_mistral': 1562, 'n_tokens_neox': 1515, 'n_words': 331}