Skip to content

Commit

Permalink
feat(qualys-agent): Updated script to use rpm and pull from our s3
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Malinowski authored and Edward Malinowski committed Jun 9, 2021
1 parent a51b34d commit fd163ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion flavors/eks/bootstrap-explicit-proxy-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ systemctl restart docker

# Install qualys agent if the activtion and customer id provided
if [[ ! -z $activation_id ]] || [[ ! -z $customer_id ]]; then
sudo dpkg --install QualysCloudAgent.deb
aws s3 cp s3://qualys-agentpackage/QualysCloudAgent.rpm ./qualys-cloud-agent.x86_64.rpm
sudo rpm -ivh qualys-cloud-agent.x86_64.rpm
# Clean up rpm package after install
rm qualys-cloud-agent.x86_64.rpm
sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId=${activation_id} CustomerId=${customer_id}
fi
5 changes: 4 additions & 1 deletion flavors/eks/bootstrap-with-security-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz

# Install qualys agent if the activtion and customer id provided
if [[ ! -z $activation_id ]] || [[ ! -z $customer_id ]]; then
sudo dpkg --install QualysCloudAgent.deb
aws s3 cp s3://qualys-agentpackage/QualysCloudAgent.rpm ./qualys-cloud-agent.x86_64.rpm
sudo rpm -ivh qualys-cloud-agent.x86_64.rpm
# Clean up rpm package after install
rm qualys-cloud-agent.x86_64.rpm
sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId=${activation_id} CustomerId=${customer_id}
fi
5 changes: 4 additions & 1 deletion flavors/eks/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ fi

# Install qualys agent if the activtion and customer id provided
if [[ ! -z $activation_id ]] || [[ ! -z $customer_id ]]; then
sudo dpkg --install QualysCloudAgent.deb
aws s3 cp s3://qualys-agentpackage/QualysCloudAgent.rpm ./qualys-cloud-agent.x86_64.rpm
sudo rpm -ivh qualys-cloud-agent.x86_64.rpm
# Clean up rpm package after install
rm qualys-cloud-agent.x86_64.rpm
sudo /usr/local/qualys/cloud-agent/bin/qualys-cloud-agent.sh ActivationId=${activation_id} CustomerId=${customer_id}
fi

0 comments on commit fd163ff

Please sign in to comment.