Skip to content

Commit 630e773

Browse files
author
Sergei Antipov
committed
Deleted unneeded parts
1 parent e5f2d18 commit 630e773

File tree

5 files changed

+4
-77
lines changed

5 files changed

+4
-77
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ mongodb_package: mongodb-org
1919
# I will recommend you to use latest version of MongoDB.
2020
mongodb_version: "3.2"
2121

22-
mongodb_force_wait_for_port: false # When not forced, the role will wait for mongod port to become available only with systemd
23-
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
24-
mongodb_pymongo_pip_version: "3.2.2"
25-
26-
mongodb_disable_thp: true
27-
22+
mongodb_force_wait_for_port: false # When not forced, the role will wait for mongod port to become available only with systemd
23+
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
24+
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
2825
mongodb_manage_service: true
2926

3027
mongodb_user: mongodb
@@ -77,16 +74,6 @@ mongodb_mms_group_id: ""
7774
mongodb_mms_api_key: ""
7875
mongodb_mms_base_url: https://mms.mongodb.com
7976

80-
# Log rotation
81-
mongodb_logrotate: true # Rotate mongodb logs.
82-
mongodb_logrotate_options:
83-
- compress
84-
- copytruncate
85-
- daily
86-
- dateext
87-
- rotate 7
88-
- size 10M
89-
9077
# password for inter-process authentication
9178
# please regenerate this file on production environment with command 'openssl rand -base64 741'
9279
mongodb_keyfile_content: |

defaults/main.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ mongodb_apt_key_id: "{{ 'EA312927' if mongodb_version[0:3] == '3.2' else '7F0CEB
77
mongodb_pymongo_from_pip: true # Install latest PyMongo via PIP or package manager
88

99
mongodb_force_wait_for_port: false
10-
mongodb_disable_thp: true
1110
mongodb_user_update_password: "on_create" # MongoDB user password update default policy
1211
mongodb_manage_service: true
1312

@@ -62,16 +61,6 @@ mongodb_mms_group_id: ""
6261
mongodb_mms_api_key: ""
6362
mongodb_mms_base_url: https://mms.mongodb.com
6463

65-
# Log rotation
66-
mongodb_logrotate: true # Rotate mongodb logs.
67-
mongodb_logrotate_options:
68-
- compress
69-
- copytruncate
70-
- daily
71-
- dateext
72-
- rotate 7
73-
- size 10M
74-
7564
# password for inter-process authentication
7665
# please regenerate this file on production environment with command 'openssl rand -base64 741'
7766
mongodb_keyfile_content: |

tasks/configure.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
mode: 0600
1010
when: mongodb_replication_replset and mongodb_replication_replset != ''
1111

12-
- name: Configure log rotation
13-
template: src=logrotate.conf.j2 dest=/etc/logrotate.d/mongodb.conf
14-
when: mongodb_logrotate
15-
1612
- name: set mongodb gid
1713
group: name=mongodb gid={{ mongodb_gid }} state=present
1814
when: mongodb_gid
@@ -40,29 +36,6 @@
4036
template: src=mongod.conf.j2 dest=/etc/mongod.conf backup=yes owner=root group=root mode=0644
4137
register: config_result
4238

43-
- name: Install sysfsutils package
44-
apt: name=sysfsutils state=present
45-
when: ansible_os_family == 'Debian' and mongodb_disable_thp
46-
47-
- name: Create /etc/sysfs.d direcroty
48-
file:
49-
path: /etc/sysfs.d
50-
group: root
51-
state: directory
52-
mode: 0755
53-
owner: root
54-
when: ansible_os_family == 'Debian' and mongodb_disable_thp
55-
56-
- name: Create sysfs config
57-
copy:
58-
src: hugepages.conf
59-
dest: /etc/sysfs.d/hugepages.conf
60-
owner: root
61-
group: root
62-
mode: 0644
63-
when: ansible_os_family == 'Debian' and mongodb_disable_thp
64-
notify: restart sysfsutils
65-
6639
- name: mongodb restart
6740
service: name={{ mongodb_daemon_name }} state=restarted
6841
when: config_result|changed and mongodb_manage_service

templates/logrotate.conf.j2

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/site.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,4 @@
2222
roles:
2323
- role: greendayonfire.mongodb
2424
when: "'mongo' in group_names"
25-
26-
- hosts: localhost
27-
become: no
28-
gather_facts: no
29-
tasks:
30-
- name: Run MongoDB cluster in Docker
31-
docker:
32-
name: "{{ item }}"
33-
image: "{{ image_name }}"
34-
command: "/sbin/init"
35-
state: absent
36-
with_items:
37-
- mongo1
38-
- mongo2
39-
- mongo3
25+

0 commit comments

Comments
 (0)