Skip to content

Commit

Permalink
chore: update pkg install test to check https
Browse files Browse the repository at this point in the history
  • Loading branch information
codyshepherd committed Aug 3, 2021
1 parent a06e751 commit 4fdcd6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ jobs:
sudo apt-get update && sudo apt-get install -y /home/ubuntu/influxdb.deb
sudo service influxdb start
EOF
ssh -o "StrictHostKeyChecking=no" ubuntu@$ec2_ip \<< EOF
sudo service influxdb stop
sudo sed -i 's/ # https-enabled = false/ https-enabled = true/' /etc/influxdb/influxdb.conf
sudo sed -i 's/ # https-certificate = "/etc/ssl/influxdb.pem"/ https-certificate = "/etc/ssl/influxdb.crt"/' /etc/influxdb/influxdb.conf
sudo sed -i 's/ # https-private-key = ""/ https-private-key = "/etc/ssl/influxdb.key"/' /etc/influxdb/influxdb.conf
sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ssl/influxdb.key -out /etc/ssl/influxdb.crt -days 365 -subj /C=US/ST=CA/L=sanfrancisco/O=influxdata/OU=edgeteam/CN=localhost
sudo chown influxdb:influxdb /etc/ssl/influxdb.*
sudo service influxdb start
- run:
name: Terraform destroy
command: |
Expand Down

0 comments on commit 4fdcd6b

Please sign in to comment.