GithubHelp home page GithubHelp logo

bbrfkr / ansible_role_openstack_mariadb Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 29 KB

Ansible role to execute MariaDB setting for OpenStack environment

License: MIT License

Ruby 92.76% Shell 7.24%

ansible_role_openstack_mariadb's Introduction

ansible_role_openstack_mariadb

This is an Ansible role. This role executes MariaDB settings for OpenStack environment.

Processing

This role executes the following settings.

  • MariaDB setting
    • register openstack repository
    • install necessary packages
    • set mariadb config
    • set mariadb service enabled and started
    • execute mysql_secure_installation
    • set mariadb allowed for root user to connect from remote host

Caution!!

  • This role assumpts a part of network settings (nics, default gateway and dns server) is completed.
  • This role assumpts NetworkManager service is disabled and stopped.

Support OpenStack release

  • Ocata
  • Pike

Support OS

OS version
CentOS 7

Role variables

openstack_mariadb:
  listen_addr: 192.168.1.115      # address on which mariadb service listens
  db_root_pass: password          # password of MariaDB's root user
  remote_connect:                 # settings for remote connect (optional)
    remote_host: "%"              # target host for connecting remotely
    allow_connect: yes            # whether allow to connect from remote host or not

Dependencies

Build status

branch status
master Build Status
ocata Build Status
pike Build Status

Retest

This role is tested by serverspec, then its test codes are included in repository. Users can retest this role by using the test codes. To retest this role, follow the steps described below.

  1. Prepare 3 targets (Here, targets ip are X.X.X.X, Y.Y.Y.Y, Z.Z.Z.Z)
  2. Install serverspec in local machine
  3. Modify spec/inventory.yml
---
- conn_name: target15  # never change!
  conn_host: X.X.X.X   # target ip
  conn_port: 22        # target's ssh port
  conn_user: vagrant   # user to connect
  conn_pass: vagrant   # password of user
  conn_idkey:          # path of identity key 
                       # (absolute path or relative path from the location of Rakefile)
  sudo_pass:           # sudo password of user

- conn_name: target16  # never change!
  conn_host: Y.Y.Y.Y   # target ip
  conn_port: 22        # target's ssh port
  conn_user: vagrant   # user to connect
  conn_pass: vagrant   # password of user
  conn_idkey:          # path of identity key
                       # (absolute path or relative path from the location of Rakefile)
  sudo_pass:           # sudo password of user

- conn_name: target17  # never change!
  conn_host: Z.Z.Z.Z   # target ip
  conn_port: 22        # target's ssh port
  conn_user: vagrant   # user to connect
  conn_pass: vagrant   # password of user
  conn_idkey:          # path of identity key
                       # (absolute path or relative path from the location of Rakefile)
  sudo_pass:           # sudo password of user
  1. Modify targets ips in any files of spec dir
$ sed -i 's/192\.168\.1\.115/X.X.X.X/g' `find spec -type f`
$ sed -i 's/192\.168\.1\.116/Y.Y.Y.Y/g' `find spec -type f`
$ sed -i 's/192\.168\.1\.117/Z.Z.Z.Z/g' `find spec -type f`
  1. Run rake

License

MIT

Author

Name: bbrfkr
MAIL: [email protected]

ansible_role_openstack_mariadb's People

Contributors

bbrfkr avatar

Watchers

 avatar  avatar  avatar

Forkers

kisquish

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.