diff --git a/salt/logstash/init.sls b/salt/logstash/init.sls index cd0b560c0..2ea7ecb49 100644 --- a/salt/logstash/init.sls +++ b/salt/logstash/init.sls @@ -87,8 +87,8 @@ lslogdir: so-logstash: docker_container.running: - image: toosmooth/so-logstash:test2 - - hostname: logstash - - name: logstash + - hostname: so-logstash + - name: so-logstash - user: logstash - environment: - LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }} diff --git a/salt/redis/init.sls b/salt/redis/init.sls index e7e2e45ba..85abccc71 100644 --- a/salt/redis/init.sls +++ b/salt/redis/init.sls @@ -29,6 +29,13 @@ redisworkdir: - group: 939 - makedirs: True +redislogdir: + file.directory: + - name: /opt/so/log/redis + - user: 939 + - group: 939 + - makedirs: True + redisconfsync: file.recurse: - name: /opt/so/conf/redis/etc diff --git a/so-setup-network.sh b/so-setup-network.sh index 1b0e5bf0f..ecd31a407 100644 --- a/so-setup-network.sh +++ b/so-setup-network.sh @@ -300,8 +300,8 @@ master_pillar() { echo " ls_pipeline_workers: $CPUCORES" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " nids_rules: $RULESETUP" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls echo " oinkcode: $OINKCODE" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls - echo " access_key: \x22$ACCESS_KEY\x22" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls - echo " access_secret: \x22$ACCESS_SECRET\x22" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls + echo " access_key: $ACCESS_KEY" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls + echo " access_secret: $ACCESS_SECRET" >> /opt/so/saltstack/pillar/masters/$HOSTNAME.sls } @@ -754,6 +754,8 @@ if (whiptail_you_sure) then # Let folks know they need their management interface already set up. whiptail_network_notice + # Go ahead and gen the keys so we can use them for any sensor type + minio_generate_keys # What kind of install are we doing? whiptail_install_type @@ -777,21 +779,22 @@ if (whiptail_you_sure) then # Last Chance to back out whiptail_make_changes + # Add the user so we can sit back and relax + echo "" + echo "**** Please set a password for socore. You will use this password when setting up other Nodes/Sensors" + echo "" + add_socore_user_master + # Install salt and dependencies saltify configure_minion master install_master salt_master_directories - echo "" - echo "**** Please set a password for socore. You will use this password when setting up other Nodes/Sensors" - echo "" - add_socore_user_master update_sudoers chown_salt_master es_heapsize ls_heapsize master_static - minio_generate_keys echo "generating the master pillar" master_pillar # Do a checkin to push the key up