Skip to content

Commit

Permalink
Update fleet enroll_secrets before starting the service
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxg33k committed Jul 25, 2020
1 parent b6e7282 commit 099ab55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Vagrant/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ install_fleet_import_osquery_config() {
cp fleet/linux/fleet /usr/local/bin/fleet && chmod +x /usr/local/bin/fleet

fleet prepare db --mysql_address=127.0.0.1:3306 --mysql_database=kolide --mysql_username=root --mysql_password=kolide

# Set the enrollment secret to match what we deploy to Windows hosts
mysql -uroot --password=kolide -e 'use kolide; update enroll_secrets set secret = "enrollmentsecret" where active=1;'
echo "Updated enrollment secret"

cp /vagrant/resources/fleet/server.* /opt/fleet/
cp /vagrant/resources/fleet/fleet.service /etc/systemd/system/fleet.service
Expand All @@ -142,9 +146,7 @@ install_fleet_import_osquery_config() {
/bin/systemctl start fleet.service


# Set the enrollment secret to match what we deploy to Windows hosts
mysql -uroot --password=kolide -e 'use kolide; update enroll_secrets set secret = "enrollmentsecret" where active=1;'
echo "Updated enrollment secret"


fleetctl config set --address https://192.168.38.105:8412
fleetctl config set --tls-skip-verify true
Expand Down

0 comments on commit 099ab55

Please sign in to comment.