File tree Expand file tree Collapse file tree 7 files changed +54
-9
lines changed Expand file tree Collapse file tree 7 files changed +54
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Amazon Linux 2
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ python2 :
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ molecule_distro :
17
+ - amazonlinux2
18
+ mongodb_version :
19
+ - ' 4.2'
20
+ - ' 4.0'
21
+ - ' 3.6'
22
+ env :
23
+ MONGODB_VERSION : ${{ matrix.mongodb_version }}
24
+ MOLECULE_DISTRO : ${{ matrix.molecule_distro }}
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v2
28
+ - name : Prepare tests
29
+ run : pip install -r requirements.txt
30
+ - name : Run tests
31
+ run : |
32
+ molecule test
33
+ AUTH_STATE=enabled molecule test
34
+ molecule test -s cluster
35
+ AUTH_STATE=enabled molecule test -s cluster
Original file line number Diff line number Diff line change 31
31
run : |
32
32
molecule test
33
33
AUTH_STATE=enabled molecule test
34
+ molecule test -s cluster
35
+ AUTH_STATE=enabled molecule test -s cluster
Original file line number Diff line number Diff line change 13
13
runs-on : ubuntu-latest
14
14
strategy :
15
15
matrix :
16
- molecule_distro :
16
+ molecule_distro :
17
17
- debian9
18
18
- debian10
19
19
mongodb_version :
37
37
run : |
38
38
molecule test
39
39
AUTH_STATE=enabled molecule test
40
+ molecule test -s cluster
41
+ AUTH_STATE=enabled molecule test -s cluster
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ platforms:
38
38
- mongo_replicas
39
39
provisioner :
40
40
name : ansible
41
+ config_options :
42
+ defaults :
43
+ pipelining : true
41
44
log : true
42
45
playbooks :
43
46
converge : ${MOLECULE_PLAYBOOK:-../default/converge.yml}
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ platforms:
20
20
- mongo_master
21
21
provisioner :
22
22
name : ansible
23
+ config_options :
24
+ defaults :
25
+ pipelining : true
23
26
log : true
24
27
playbooks :
25
28
converge : ${MOLECULE_PLAYBOOK:-converge.yml}
Original file line number Diff line number Diff line change 27
27
password : " {{ mongodb_user_admin_password }}" ,
28
28
roles : " userAdminAnyDatabase"
29
29
}
30
- no_log : false
30
+ no_log : true
31
31
32
32
- name : create administrative user "{{ mongodb_root_admin_name }}"
33
33
mongodb_user :
43
43
password : " {{ mongodb_root_admin_password }}" ,
44
44
roles : " root"
45
45
}
46
- no_log : false
46
+ no_log : true
47
47
48
48
- name : create backup user "{{ mongodb_root_backup_name }}"
49
49
mongodb_user :
59
59
password : " {{ mongodb_root_backup_password }}" ,
60
60
roles : " backup,clusterMonitor"
61
61
}
62
- no_log : false
62
+ no_log : true
63
63
64
64
- name : Move back mongod.conf
65
65
template :
Original file line number Diff line number Diff line change 53
53
ignore_errors : true
54
54
when : ( mongodb_security_authorization == 'enabled'
55
55
and not mongodb_replication_replset )
56
- no_log : false
56
+ no_log : true
57
57
tags : [mongodb]
58
58
59
59
- name : Include authorization configuration
80
80
when : ( mongodb_replication_replset
81
81
and mongodb_security_authorization == 'enabled'
82
82
and mongodb_master is defined and mongodb_master )
83
- no_log : false
83
+ no_log : true
84
84
tags : [mongodb]
85
85
86
86
- name : create normal users without replicaset
92
92
roles : " {{ item.roles }}"
93
93
login_user : " {{ mongodb_user_admin_name }}"
94
94
login_password : " {{ mongodb_user_admin_password }}"
95
- login_port : " {{ mongodb_net_port }}"
95
+ login_port : " {{ mongodb_net_port | int }}"
96
96
login_host : " {{ mongodb_login_host|default('localhost') }}"
97
97
ssl : " {{ True if mongodb_net_ssl_mode == 'requireSSL' else False }}"
98
98
with_items :
99
99
- " {{ mongodb_users | default([]) }}"
100
100
when : ( mongodb_security_authorization == 'enabled'
101
101
and not mongodb_replication_replset )
102
- no_log : false
102
+ no_log : true
103
103
tags : [mongodb]
104
104
105
105
- name : create oplog user with replicaset
121
121
when : ( mongodb_replication_replset | length > 0
122
122
and mongodb_security_authorization == 'enabled'
123
123
and mongodb_master is defined and mongodb_master )
124
- no_log : false
124
+ no_log : true
125
125
tags : [mongodb]
126
126
127
127
- name : service started
You can’t perform that action at this time.
0 commit comments