diff --git a/slack/prod/common/scripts/postinstall b/slack/prod/common/scripts/postinstall index 5ab05dd..3773b79 100755 --- a/slack/prod/common/scripts/postinstall +++ b/slack/prod/common/scripts/postinstall @@ -1,3 +1,10 @@ #!/bin/bash -apt -y install htop glances sssd-ad dstat ladvd snmpd ntp +ISUCS="$(hostname |grep ucs -c)" + +if [ $ISUCS -ne 0 ]; then + echo "Do not run this on ucs host. Exiting..." + exit 1 +fi + +apt -y install htop glances sssd-ad dstat ladvd snmpd ntp tcpdump autofs diff --git a/slack/prod/ovh/files/etc b/slack/prod/ovh/files/etc/ntp.conf similarity index 91% rename from slack/prod/ovh/files/etc rename to slack/prod/ovh/files/etc/ntp.conf index 6e89285..cbcd83b 100644 --- a/slack/prod/ovh/files/etc +++ b/slack/prod/ovh/files/etc/ntp.conf @@ -5,11 +5,10 @@ filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable +server ovh-ucs.turnsys.net server pfv-ucs.turnsys.net server satx-ucs.turnsys.net -server ovh-ucs.turnsys.net -ntpsigndsocket /var/lib/samba/ntp_signd restrict default mssntp noquery restrict 127.0.0.1 restrict ::1 diff --git a/slack/prod/ovh/files/etc/resolv.conf b/slack/prod/ovh/files/etc/resolv.conf new file mode 100644 index 0000000..7ebdb38 --- /dev/null +++ b/slack/prod/ovh/files/etc/resolv.conf @@ -0,0 +1,3 @@ +domain turnsys.net +nameserver 10.253.3.201 +nameserver 10.40.100.200 diff --git a/slack/prod/pfv/files/etc/ntp.conf b/slack/prod/pfv/files/etc/ntp.conf index 6e89285..8c7299a 100644 --- a/slack/prod/pfv/files/etc/ntp.conf +++ b/slack/prod/pfv/files/etc/ntp.conf @@ -6,10 +6,9 @@ filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable server pfv-ucs.turnsys.net -server satx-ucs.turnsys.net server ovh-ucs.turnsys.net +server satx-ucs.turnsys.net -ntpsigndsocket /var/lib/samba/ntp_signd restrict default mssntp noquery restrict 127.0.0.1 restrict ::1 diff --git a/slack/prod/satx/files/etc/ntp.conf b/slack/prod/satx/files/etc/ntp.conf index 6e89285..1c15c5d 100644 --- a/slack/prod/satx/files/etc/ntp.conf +++ b/slack/prod/satx/files/etc/ntp.conf @@ -5,11 +5,10 @@ filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable -server pfv-ucs.turnsys.net server satx-ucs.turnsys.net server ovh-ucs.turnsys.net +server pfv-ucs.turnsys.net -ntpsigndsocket /var/lib/samba/ntp_signd restrict default mssntp noquery restrict 127.0.0.1 restrict ::1