Changes between Version 33 and Version 34 of SystemAdministration/Default_VM_setup
- Timestamp:
- 08/01/17 12:40:26 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SystemAdministration/Default_VM_setup
v33 v34 1 = Default CentOS 7 host 2 1 = Default CentOS 7 host = 3 2 IUS packages overview: https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/repoview/ 4 3 … … 40 39 chmod +x /usr/local/bin/docker-compose && 41 40 ln -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 42 49 43 50 ## Create sysop users … … 83 90 service docker start 84 91 }}} 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] 90 93 91 94 ## Install [../Monitoring/collectd collectd] ## … … 94 97 95 98 In `/etc/sysconfig/network-scripts/ifcfg-eth0`: 99 96 100 {{{ 97 101 # Generated by dracut initrd … … 116 120 GATEWAY2=37.97.157.1 117 121 }}} 118 119 122 # SELinux # 120 123 121 Check status: 124 Check status: 125 122 126 {{{ 123 127 sestatus 124 128 }}} 129 Check policy of a file: 125 130 126 Check policy of a file:127 131 {{{ 128 132 ls -Z /etc/collectd.conf 129 133 }}} 134 Check policy of a process: 130 135 131 Check policy of a process:132 136 {{{ 133 137 ps -Z docker 134 138 }}} 139 Set user, role and type on a file: 135 140 136 Set user, role and type on a file:137 141 {{{ 138 142 sudo chcon -v --user=system_u --role=object_r --type=etc_t /etc/collectd.conf 139 143 }}} 144 Restore policy on a file: 140 145 141 Restore policy on a file:142 146 {{{ 143 147 restorecon -v /etc/collectd.conf