Server IP : 85.214.239.14 / Your IP : 3.133.154.208 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible_collections/community/mongodb/roles/mongodb_config/ |
Upload File : |
mongodb_config ============== A simple role to aid in setting up a CSRS Config Server Replicaset for a MongoDB sharded cluster. Role Variables -------------- * `config_port`: The port used by the mongos process. Default 27019. * `mongod_service`: The name of the mongod service. Default mongod. * `mongodb_user`: The Linux OS user for MongoDB. Default mongod. * `mongodb_group`: The Linux OS user group for MongoDB. Default mongod. * `pid_file`: The pid file for mongos. Default /run/mongodb/mongos.pid. * `log_path`: Path of the log file. Default /var/log/mongodb/mongod.log. * `bind_ip`: The IP address mongod will bind to. Default 0.0.0.0. * `bind_ip_all`: Have mongod bind to all IP addresses instead of specifying `bind_ip`. Default false. * `config_repl_set_name`: The replicaset name for the config servers. Default cfg. * `authorization`: Enable authorization. Default enabled. * `openssl_keyfile_content`: The kexfile content that MongoDB uses to authenticate within a replicaset. Generate with cmd: openssl rand -base64 756. * `openssl_keyfile_path`: Put the openssl_keyfile at this path. Default: /etc/keyfile * `mongod_package`: The name of the mongod installation package. Default mongodb-org-server. replicaset: When enabled add a replication section to the configuration. Default true. * `net_compressors`: If this is set, this sets `net.compression.compressors` in mongod.conf. * `mongod_config_template`: If defined allows to override path to mongod config template with custom configuration. Default "mongod.conf.j2" * `skip_restart`: If set to `true` will skip restarting mongod service when config file or the keyfile content changes. Default `true`. * `db_path`: Path to database data location. Default `/var/lib/mongodb` on Debian based distributions, `/var/lib/mongo` for others. * `mongodb_use_tls`: Wether to use tls. Default false. * `mongodb_certificate_key_file`: Path to the PEM-file containing the certficate and private key. * `mongodb_certificate_ca_file`: Path to the CA-file. Dependencies ------------ mongodb_repository Example Playbook ---------------- Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: ```yaml - hosts: servers roles: - { role: mongodb_repository } - { role: mongodb_config, config_repl_set_name: "mycustomrs" } ``` License ------- BSD Author Information ------------------ Rhys Campbell (https://github.com/rhysmeister)