Landon LaSmith
2019-09-13 852e52e3995cf38d082912ad7edb638e2c1e212f
S1003: User num_users for role user count (#708)

3 files modified
12 ■■■■ changed files
ansible/roles/ocp4-workload-rhte-analytics_data_ocp_workshop/defaults/main.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/ocp4-workload-rhte-analytics_data_ocp_workshop/readme.adoc 8 ●●●● patch | view | raw | blame | history
ansible/roles/ocp4-workload-rhte-analytics_data_ocp_workshop/tasks/workload.yml 2 ●●● patch | view | raw | blame | history
ansible/roles/ocp4-workload-rhte-analytics_data_ocp_workshop/defaults/main.yml
@@ -15,7 +15,7 @@
# The first user number to start with when creating projects
user_count_start: 1
# The last user number to start with when creating projects
user_count_end: "{{user_count_start|int + user_count|int}}"
user_count_end: "{{user_count_start|int + num_users|int}}"
# Rook Ceph Info
# These variables will be initialized by the role ocp4-workload-rhte-analytics_data_ocp_infra
ansible/roles/ocp4-workload-rhte-analytics_data_ocp_workshop/readme.adoc
@@ -45,7 +45,7 @@
# ROOK CEPH RGW info would be provided by role ocp4-workload-rhte-analytics_data_ocp_infra
ROOK_CEPH_RGW_SERVICE_IP=XX.YY.ZZ.WW
ROOK_CEPH_RGW_SERVICE_PORT=8000
WORKSHOP_USER_COUNT=50
WORKSHOP_NUM_USERS=50
# a TARGET_HOST is specified in the command line, without using an inventory file
ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \
@@ -57,7 +57,7 @@
    -e"guid=${GUID}" \
    -e"rgw_service_ip=${ROOK_CEPH_RGW_SERVICE_IP}"
    -e"rgw_service_port=${ROOK_CEPH_RGW_SERVICE_PORT}"
    -e"user_count=${WORKSHOP_USER_COUNT}" \
    -e"num_users=${WORKSHOP_NUM_USERS}" \
    -e"ACTION=create"
----
@@ -69,7 +69,7 @@
OCP_USERNAME=opentlc-mgr
WORKLOAD="ocp4-workload-rhte-analytics_data_ocp_workshop"
GUID=<GUID assigned by RHPDS>
WORKSHOP_USER_COUNT=50
WORKSHOP_NUM_USERS=50
# a TARGET_HOST is specified in the command line, without using an inventory file
ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \
@@ -78,7 +78,7 @@
    -e"ocp_username=${OCP_USERNAME}" \
    -e"ocp_workload=${WORKLOAD}" \
    -e"guid=${GUID}" \
    -e"user_count=${WORKSHOP_USER_COUNT}" \
    -e"num_users=${WORKSHOP_NUM_USERS}" \
    -e"ACTION=remove"
----
ansible/roles/ocp4-workload-rhte-analytics_data_ocp_workshop/tasks/workload.yml
@@ -6,7 +6,7 @@
- name: Setting up workload for user
  debug:
    msg: "Setting up workload for {{ user_count }} users"
    msg: "Setting up workload for {{ num_users }} users"
- include_tasks: per_user_pre_operator_workload.yml
  loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"