docs: minor edit to overview of prod node setup

This commit is contained in:
troymc 2016-08-22 15:23:14 +02:00
parent d8a36019ae
commit bcde21a2a3
2 changed files with 32 additions and 1 deletions

View File

@ -9,7 +9,7 @@ Deploying and managing a production BigchainDB node is much more involved than w
Thankfully, there are tools that can help (e.g. provisioning tools and configuration management tools). You can use whatever tools you prefer.
As an example, we provide documentation and code showing how to use Terraform and Ansible (together).
As an example, we provide documentation and code showing how to use Terraform and Ansible (together). We use:
* [Terraform](https://www.terraform.io/) to provision infrastructure such as AWS instances, storage and security groups
* [Ansible](https://www.ansible.com/) to manage the software installed on that infrastructure (configuration management)

View File

@ -0,0 +1,31 @@
---
# ansible/roles/common/tasks/main.yml
- name: Do the equivalent of apt-get update
apt: update_cache=yes
- name: Uninstall ntpdate (deprecated)
apt: name=ntpdate state=absent
tags: ntp
- name: Update all installed packages to their latest versions
apt: upgrade=dist
- name: Install ntp
apt: name=ntp state=latest update_cache=yes
tags: ntp
#- name: Configure ntp file
# template: src=ntp.conf.j2 dest=/etc/ntp.conf
# tags: ntp
# "restart ntp" is the name of a handler (in common/handlers/main.yml)
# notify: restart ntp
- name: Start the ntp service
service: name=ntpd state=started enabled=yes
tags: ntp
#- name: test to see if selinux is running
# command: getenforce
# register: sestatus
# changed_when: false