<commit_before>#
# Pre-deployment tasks
#

# When the node is not the controller and we need to configure the public
# address of the node, somehow it fails saying that openvswitch is not
# installed. By creating the file '/etc/hiera/override/node/${::fqdn}.yaml and
# setting use_neutron:true on it we force that openvswitch will be installed by
# the l23network module. that does not mean that we will install neutron there.
- id: midonet_trick_l23network
  role: [nsdb, compute, midonet-gw]
  stage: pre_deployment/6001
  required_for: [pre_deployment_end]
  type: puppet
  parameters:
    puppet_manifest: puppet/manifests/midonet-trick-l23network.pp
    puppet_modules: "puppet/modules/:/etc/puppet/modules/"
    timeout: 720

#
# Post-deployment tasks
#

# Configure the repositories and the puppet modules we need to deploy
# midonet on the nodes.
- id: midonet_install_dependencies
  role: [primary-controller, controller, compute, nsdb, midonet-gw]
  stage: post_deployment/1003
  required_for: [pre_deployment_end]
  type: shell
  parameters:
    cmd: ./install_dependencies.sh
    timeout: 720

# Enable IP forward in all the nodes that will install midolman agent
- id: midonet_enable_ip_forward
  role: [nsdb, compute, controller, primary-controller]
  stage: post_deployment/4400
  required_for: [post_deployment_end]
  type: puppet
  parameters:
    puppet_manifest: puppet/manifests/midonet-enable-ip-forward.pp
    puppet_modules: "puppet/modules/:/etc/puppet/modules/"
    timeout: 720

# This task will install and configure the `nsdb` role (with zookeeper
# and cassandra)
- id: midonet_cassandra_and_zookeeper
  role: [nsdb]
  stage: post_deployment/6001
  required_for: [deploy_end]
  type: puppet
  parameters:
    puppet_manifest: puppet/manifests/midonet-nsdb.pp
    puppet_modules: "puppet/modules/:/etc/puppet/modules/"
    timeout: 720

# Only running on primary controller: since we can only set tasks on
# post-deployments, reaching this point means Neutron is deployed with<commit_msg>Fix wrong require for midonet_install_dependencies<commit_after>#
# Pre-deployment tasks
#

# When the node is not the controller and we need to configure the public
# address of the node, somehow it fails saying that openvswitch is not
# installed. By creating the file '/etc/hiera/override/node/${::fqdn}.yaml and
# setting use_neutron:true on it we force that openvswitch will be installed by
# the l23network module. that does not mean that we will install neutron there.
- id: midonet_trick_l23network
  role: [nsdb, compute, midonet-gw]
  stage: pre_deployment/6001
  required_for: [pre_deployment_end]
  type: puppet
  parameters:
    puppet_manifest: puppet/manifests/midonet-trick-l23network.pp
    puppet_modules: "puppet/modules/:/etc/puppet/modules/"
    timeout: 720

#
# Post-deployment tasks
#

# Configure the repositories and the puppet modules we need to deploy
# midonet on the nodes.
- id: midonet_install_dependencies
  role: [primary-controller, controller, compute, nsdb, midonet-gw]
  stage: post_deployment/1003
  required_for: [post_deployment_end]
  type: shell
  parameters:
    cmd: ./install_dependencies.sh
    timeout: 720

# Enable IP forward in all the nodes that will install midolman agent
- id: midonet_enable_ip_forward
  role: [nsdb, compute, controller, primary-controller]
  stage: post_deployment/4400
  required_for: [post_deployment_end]
  type: puppet
  parameters:
    puppet_manifest: puppet/manifests/midonet-enable-ip-forward.pp
    puppet_modules: "puppet/modules/:/etc/puppet/modules/"
    timeout: 720

# This task will install and configure the `nsdb` role (with zookeeper
# and cassandra)
- id: midonet_cassandra_and_zookeeper
  role: [nsdb]
  stage: post_deployment/6001
  required_for: [deploy_end]
  type: puppet
  parameters:
    puppet_manifest: puppet/manifests/midonet-nsdb.pp
    puppet_modules: "puppet/modules/:/etc/puppet/modules/"
    timeout: 720

# Only running on primary controller: since we can only set tasks on
# post-deployments, reaching this point means Neutron is deployed with
{'fraction_non_alphanumeric': 0.08108108108108109, 'fraction_numerical': 0.016707616707616706, 'mean_word_length': 4.464429530201342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6661647', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1295, 'n_words': 401}