Replaced usage outdate egrep to grep
and small fix for comment Change-Id: I3f93a72ece4f812edded4a0d3a14a67c878f3b69 Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
This commit is contained in:
@@ -196,7 +196,7 @@ The list of overrides available may be found by executing:
|
||||
|
||||
ls /etc/ansible/roles/*/defaults/main.yml -1 \
|
||||
| xargs -I {} grep '_.*_overrides:' {} \
|
||||
| egrep -v "^#|^\s" \
|
||||
| grep -Ev "^#|^\s" \
|
||||
| sort -u
|
||||
|
||||
.. note::
|
||||
@@ -206,7 +206,7 @@ The list of overrides available may be found by executing:
|
||||
``/etc/ansible/roles/role_name/defaults/main.yml``.
|
||||
|
||||
Overriding OpenStack configuration defaults
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
OpenStack has many configuration options available in ``.conf`` files
|
||||
(in a standard ``INI`` file format),
|
||||
|
||||
@@ -134,7 +134,7 @@ function find_files {
|
||||
! -name '*.html' \
|
||||
! -name '*.subunit' \
|
||||
! -name "*.journal" \
|
||||
! -name 'ansible.sqlite' | egrep -v 'stackviz|ara-report'
|
||||
! -name 'ansible.sqlite' | grep -Ev 'stackviz|ara-report'
|
||||
}
|
||||
|
||||
function rename_files {
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
delegate_to: "{{ groups['utility_all'][0] }}"
|
||||
|
||||
- name: Check that WSREP is ready and Synced
|
||||
shell: "/usr/bin/mariadb-admin extended-status | egrep '(wsrep_local_state_comment)'"
|
||||
shell: "/usr/bin/mariadb-admin extended-status | grep -E '(wsrep_local_state_comment)'"
|
||||
register: mariadb_ready
|
||||
until:
|
||||
- mariadb_ready.rc == 0
|
||||
|
||||
@@ -21,7 +21,7 @@ bootstrap_host_scenario: "{{ lookup('env', 'SCENARIO') | default('aio_lxc', true
|
||||
bootstrap_host_action: "{{ lookup('env', 'ACTION') | default('deploy', true) }}"
|
||||
#
|
||||
# Boolean option to implement OpenStack-Ansible configuration for an AIO
|
||||
# Switch to no for a multi-node configuration
|
||||
# Switch to false for a multi-node configuration
|
||||
bootstrap_host_aio_config: true
|
||||
#
|
||||
# Path to the location of the bootstrapping configuration files
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
- name: Determine whether partitions labeled openstack-data{1,2} are present
|
||||
ansible.builtin.shell: |
|
||||
set -o pipefail;
|
||||
parted --script -l -m | egrep -q ':{{ bootstrap_host_data_disk_fs_type }}:openstack-data[12]:;$'
|
||||
parted --script -l -m | grep -Eq ':{{ bootstrap_host_data_disk_fs_type }}:openstack-data[12]:;$'
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: data_disk_partitions
|
||||
|
||||
Reference in New Issue
Block a user