<commit_before>instack
=======

Execute diskimage-builder[1] elements on the current system.  This enables a
current running system to have an element applied in the same way that
diskimage-builder applies the element to an image build.

[1] https://github.com/stackforge/diskimage-builder

## Undercloud Install

1. Clone this repository

        git clone https://github.com/slagle/instack

2. Create and edit your answers file. The descriptions of the parameters that
   can be set are in the sample answers file.

        cd instack
        cp instack.answers.sample instack.answers
        # Return back to directory where instack was cloned
        cd ..

3. Run script to install undercloud. The script will produce a lot of output on
   the sceen. It also logs to ~/.instack/install-undercloud.log. You should see
   `install-undercloud Complete!` at the end of a successful run.

        instack/scripts/install-undercloud

4. The install script has to manipulate your $PATH (until we get everything
   packaged), so you'll need to start a new shell.

        bash

4. Copy the stackrc file to your homedir so that you can use it a normal user.

        sudo cp /root/stackrc .
        sudo chown $USER: stackrc
        source stackrc

4. Add your ssh key pair to nova

        user-config

5. Download the deployment kernel and ramdisk

        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/deploy-ramdisk.initramfs
        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/deploy-ramdisk.kernel

5. Download overcloud images

        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/overcloud-compute.qcow2
        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/overcloud-control.qcow2

5. Load images into glance

        load-image overcloud-control.qcow2
        load-image overcloud-compute.qcow2

6. Use the setup-baremetal script to add your baremetal nodes

        # setup-baremetal requires this to be set
        export TRIPLEO_ROOT=.
        # $CPU = cpu count per node
        # $MEM = memory per node in MB
        # $DISK = disk per node in GB
        # $ARCH = architecture of each node, i386 or amd64
        # $MACS = space separated list of node mac addresses
        # $PM_IPS = space separated list of power management IP addresses
        # $PM_USERS = space separated list of power management users
        # $PM_PASSWORDS = space separated list of power management passwords
        # $MACS and $PM_* variables should be in the same node order, e.g., the 
        #   first MAC address should correspond to the first power management
        #   IP, etc.
        setup-baremetal $CPU $MEM $DISK $ARCH "$MACS" undercloud $PM_IPS $PM_USERS $PM_PASSWORDS

7. Create your overcloud heat template. You can adjust COMPUTESCALE to launch
   more than one compute node if you choose to.

        sudo make -C /opt/stack/tripleo-heat-templates overcloud.yaml COMPUTESCALE=1<commit_msg>need quotes here<commit_after>instack
=======

Execute diskimage-builder[1] elements on the current system.  This enables a
current running system to have an element applied in the same way that
diskimage-builder applies the element to an image build.

[1] https://github.com/stackforge/diskimage-builder

## Undercloud Install

1. Clone this repository

        git clone https://github.com/slagle/instack

2. Create and edit your answers file. The descriptions of the parameters that
   can be set are in the sample answers file.

        cd instack
        cp instack.answers.sample instack.answers
        # Return back to directory where instack was cloned
        cd ..

3. Run script to install undercloud. The script will produce a lot of output on
   the sceen. It also logs to ~/.instack/install-undercloud.log. You should see
   `install-undercloud Complete!` at the end of a successful run.

        instack/scripts/install-undercloud

4. The install script has to manipulate your $PATH (until we get everything
   packaged), so you'll need to start a new shell.

        bash

4. Copy the stackrc file to your homedir so that you can use it a normal user.

        sudo cp /root/stackrc .
        sudo chown $USER: stackrc
        source stackrc

4. Add your ssh key pair to nova

        user-config

5. Download the deployment kernel and ramdisk

        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/deploy-ramdisk.initramfs
        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/deploy-ramdisk.kernel

5. Download overcloud images

        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/overcloud-compute.qcow2
        curl -L -O http://fedorapeople.org/~slagle/slagle-tripleo-images-fedora-i2/overcloud-control.qcow2

5. Load images into glance

        load-image overcloud-control.qcow2
        load-image overcloud-compute.qcow2

6. Use the setup-baremetal script to add your baremetal nodes

        # setup-baremetal requires this to be set
        export TRIPLEO_ROOT=.
        # $CPU = cpu count per node
        # $MEM = memory per node in MB
        # $DISK = disk per node in GB
        # $ARCH = architecture of each node, i386 or amd64
        # $MACS = space separated list of node mac addresses
        # $PM_IPS = space separated list of power management IP addresses
        # $PM_USERS = space separated list of power management users
        # $PM_PASSWORDS = space separated list of power management passwords
        # $MACS and $PM_* variables should be in the same node order, e.g., the 
        #   first MAC address should correspond to the first power management
        #   IP, etc.
        setup-baremetal $CPU $MEM $DISK $ARCH "$MACS" undercloud "$PM_IPS" "$PM_USERS" "$PM_PASSWORDS"

7. Create your overcloud heat template. You can adjust COMPUTESCALE to launch
   more than one compute node if you choose to.

        sudo make -C /opt/stack/tripleo-heat-templates overcloud.yaml COMPUTESCALE=1
{'fraction_non_alphanumeric': 0.07212572373862697, 'fraction_numerical': 0.008933002481389578, 'mean_word_length': 2.762289981331674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6998993', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1731, 'n_words': 693}