Changes between Version 33 and Version 34 of SystemAdministration/Default_VM_setup


Ignore:
Timestamp:
08/01/17 12:40:26 (7 years ago)
Author:
Willem Elbers
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Default_VM_setup

    v33 v34  
    1 = Default CentOS 7 host
    2 
     1= Default CentOS 7 host =
    32IUS packages overview: https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/repoview/
    43
     
    4039chmod +x /usr/local/bin/docker-compose &&
    4140ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
     41
     42###Td-agent (fluentd)
     43#curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent2.sh | sh
     44#/opt/td-agent/embedded/bin/gem install fluent-plugin-multi-format-parser
     45#mkdir /var/log/fluent
     46#chown -R td-agent /var/log/fluent/
     47##download td-agent conf
     48#service td-agent start
    4249
    4350## Create sysop users
     
    8390service docker start
    8491}}}
    85 
    86 ## Docker storage configuration ##
    87 [http://www.projectatomic.io/blog/2015/06/notes-on-fedora-centos-and-docker-storage-drivers/ 1]
    88 [https://access.redhat.com/articles/1492923 2]
    89 [https://forums.docker.com/t/docker-storage-config-on-centos-7-1/3164 3]
     92## Docker storage configuration ## [http://www.projectatomic.io/blog/2015/06/notes-on-fedora-centos-and-docker-storage-drivers/ 1] [https://access.redhat.com/articles/1492923 2] [https://forums.docker.com/t/docker-storage-config-on-centos-7-1/3164 3]
    9093
    9194## Install [../Monitoring/collectd collectd] ##
     
    9497
    9598In `/etc/sysconfig/network-scripts/ifcfg-eth0`:
     99
    96100{{{
    97101# Generated by dracut initrd
     
    116120GATEWAY2=37.97.157.1
    117121}}}
    118 
    119122# SELinux #
    120123
    121 Check status:
     124Check status:
     125
    122126{{{
    123127sestatus
    124128}}}
     129Check policy of a file:
    125130
    126 Check policy of a file:
    127131{{{
    128132ls -Z /etc/collectd.conf
    129133}}}
     134Check policy of a process:
    130135
    131 Check policy of a process:
    132136{{{
    133137ps -Z docker
    134138}}}
     139Set user, role and type on a file:
    135140
    136 Set user, role and type on a file:
    137141{{{
    138142sudo chcon -v --user=system_u --role=object_r --type=etc_t /etc/collectd.conf
    139143}}}
     144Restore policy on a file:
    140145
    141 Restore policy on a file:
    142146{{{
    143147restorecon -v /etc/collectd.conf