<commit_before># playback
playback is an OpenStack provisioning DevOps tool that all of the OpenStack components can be deployed automation with high availability.

### Getting Started

#### Setting your testing environment if you want
You must have the Vagrant installed and than you can provision  the testing environment, the test node you can see `Vagrantfile` at `examples`.

    cd examples
    vagrant up
 
    
#### Define a inventory file
The inventory file at `inventory/inventory`, the default setting is the Vagrant testing node. You can according to your environment to change parameters.
```
[zabbix_agents]
tempest ansible_ssh_host=172.16.33.11

[nginx_servers]
tempest ansible_ssh_host=172.16.33.11

[openstack]
controller1 ansible_ssh_host=172.16.33.4
storage1 ansible_ssh_host=172.16.33.5
network ansible_ssh_host=172.16.33.6
compute1 ansible_ssh_host=172.16.33.7
swiftstore1 ansible_ssh_host=172.16.33.8
swiftstore2 ansible_ssh_host=172.16.33.9
swiftstore3 ansible_ssh_host=172.16.33.10

[ntp_server]
controller1 ansible_ssh_host=172.16.33.4

[ntp_clients]
storage1 ansible_ssh_host=172.16.33.5
network ansible_ssh_host=172.16.33.6
compute1 ansible_ssh_host=172.16.33.7
swiftstore1 ansible_ssh_host=172.16.33.8
swiftstore2 ansible_ssh_host=172.16.33.9
swiftstore3 ansible_ssh_host=172.16.33.10

[mariadb]
controller1 ansible_ssh_host=172.16.33.4

[rabbitmq]
controller1 ansible_ssh_host=172.16.33.4

[keystone]
controller1 ansible_ssh_host=172.16.33.4
```
    
#### To define your variables in vars/openstack
The `vars/openstack/openstack.yml` is all the parameters.
* openstack.yml

#### To deploy OpenStack Basic environment including NTP and OpenStack repository
    playback openstack_basic_environment.yml

#### To deploy database and messaging queues
    playback openstack_basic_database_messaging_single.yml

#### To deploy Keystone
    playback openstack_keystone.yml
    
#### To deploy Glance
The Glance default store is file.

    playback openstack_glance.yml

#### To deploy a compute controller
    playback openstack_compute_controller.yml
    
#### To deploy compute nodes
    playback openstack_compute_node.yml --extra-vars \"compute_name=compute1 compute_ip=172.16.33.7\"
    
#### To deploy a neutron controller
    playback openstack_neutron_controller.yml --extra-vars \"nova_admin_tenant_id=6aea60400e6246edaa83d508b222d2eb\"

###### To obtain the service tenant identifier (id) at the controller
        $ source admin-openrc.sh
        $ keystone tenant-get service
        +-------------+----------------------------------+
        |   Property  |              Value               |
        +-------------+----------------------------------+
        | description |          Service Tenant          |
        |   enabled   |               True               |
        |      id     | 6aea60400e6246edaa83d508b222d2eb |
        |     name    |             service              |
        +-------------+----------------------------------+
    
    <commit_msg>Add neutron node<commit_after># playback
playback is an OpenStack provisioning DevOps tool that all of the OpenStack components can be deployed automation with high availability.

### Getting Started

#### Setting your testing environment if you want
You must have the Vagrant installed and than you can provision  the testing environment, the test node you can see `Vagrantfile` at `examples`.

    cd examples
    vagrant up
 
    
#### Define a inventory file
The inventory file at `inventory/inventory`, the default setting is the Vagrant testing node. You can according to your environment to change parameters.
```
[zabbix_agents]
tempest ansible_ssh_host=172.16.33.11

[nginx_servers]
tempest ansible_ssh_host=172.16.33.11

[openstack]
controller1 ansible_ssh_host=172.16.33.4
storage1 ansible_ssh_host=172.16.33.5
network ansible_ssh_host=172.16.33.6
compute1 ansible_ssh_host=172.16.33.7
swiftstore1 ansible_ssh_host=172.16.33.8
swiftstore2 ansible_ssh_host=172.16.33.9
swiftstore3 ansible_ssh_host=172.16.33.10

[ntp_server]
controller1 ansible_ssh_host=172.16.33.4

[ntp_clients]
storage1 ansible_ssh_host=172.16.33.5
network ansible_ssh_host=172.16.33.6
compute1 ansible_ssh_host=172.16.33.7
swiftstore1 ansible_ssh_host=172.16.33.8
swiftstore2 ansible_ssh_host=172.16.33.9
swiftstore3 ansible_ssh_host=172.16.33.10

[mariadb]
controller1 ansible_ssh_host=172.16.33.4

[rabbitmq]
controller1 ansible_ssh_host=172.16.33.4

[keystone]
controller1 ansible_ssh_host=172.16.33.4
```
    
#### To define your variables in vars/openstack
The `vars/openstack/openstack.yml` is all the parameters.
* openstack.yml

#### To deploy OpenStack Basic environment including NTP and OpenStack repository
    playback openstack_basic_environment.yml

#### To deploy database and messaging queues
    playback openstack_basic_database_messaging_single.yml

#### To deploy Keystone
    playback openstack_keystone.yml
    
#### To deploy Glance
The Glance default store is file.

    playback openstack_glance.yml

#### To deploy a compute controller
    playback openstack_compute_controller.yml
    
#### To deploy compute nodes
    playback openstack_compute_node.yml --extra-vars \"compute_name=compute1 compute_ip=172.16.33.7\"
    
#### To deploy a neutron controller
    playback openstack_neutron_controller.yml --extra-vars \"nova_admin_service_tenant_id=6aea60400e6246edaa83d508b222d2eb\"

###### To obtain the service tenant identifier (id) at the controller
        $ source admin-openrc.sh
        $ keystone tenant-get service
        +-------------+----------------------------------+
        |   Property  |              Value               |
        +-------------+----------------------------------+
        | description |          Service Tenant          |
        |   enabled   |               True               |
        |      id     | 6aea60400e6246edaa83d508b222d2eb |
        |     name    |             service              |
        +-------------+----------------------------------+
### To deploy a neutron node
    playback openstack_neutron_node.yml --extra-vars \"local_tunnel_net_ip=192.168.11.6\"
    
{'fraction_non_alphanumeric': 0.12408283058861895, 'fraction_numerical': 0.07255829121147889, 'mean_word_length': 2.840951784596118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 41, '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': '3449044', 'n_tokens_mistral': 2189, 'n_tokens_neox': 1854, 'n_words': 471}