Commit b4aa4877 authored by Michael Horwath's avatar Michael Horwath

still futzing with things

parent db96dff8
......@@ -39,4 +39,11 @@ resource "aws_instance" "drone_deploy_instance" {
"mike:product" = "drone-deploy"
"mike:owner" = "${var.owner}"
}
volume_tags {
Name = "${var.name}-instance"
"mike:env" = "prod"
"mike:product" = "drone-deploy"
"mike:owner" = "${var.owner}"
}
}
output "drone_deploy_inbound_sg" {
value = "${aws_security_group.drone_deploy_inbound_sg.id}"
}
output "drone_deploy_external_ip" {
value = "${aws_eip.drone_deploy_instance_eip.public_ip}"
}
......@@ -24,7 +24,24 @@ resource "aws_security_group" "drone_deploy_inbound_sg" {
ipv6_cidr_blocks = ["${var.mikeh-home-ipv6}", "${var.mikeh-lab-ipv6}"]
}
# TEMPORARY
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
# should make the ports a variable
ingress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
ipv6_cidr_blocks = ["::/0"]
}
ingress {
from_port = 9000
to_port = 9000
......
......@@ -23,5 +23,33 @@ systemctl status docker
# avoid constant sudo
usermod -aG docker ubuntu
# make a directory
mkdir -p /var/lib/drone
mkdir -p /etc/drone
touch /etc/drone/dronerc
# pull drone in
docker pull drone/drone
cat << EOF >> /etc/drone/dronerc
# generic stuff
DRONE_SECRET='4ysuckYpassw0rd'
#DRONE_HOST=aluminum.local
DRONE_GITLAB_CLIENT='5b442fba9d780eb1c79fb7fd519d05f468c5439f7958a0b84fdce98cc735adde'
DRONE_GITLAB_SECRET='1fcc3dc41243490d40c41c800bfe01f7ec329163070ae152928d24b1a982aeb8'
DRONE_GITLAB_URL='https://grot.geeks.org'
REMOTE_DRIVER=gitlab
REMOTE_CONFIG='https://grot.geeks.org?client_id=5b442fba9d780eb1c79fb7fd519d05f468c5439f7958a0b84fdce98cc735adde&client_secret=1fcc3dc41243490d40c41c800bfe01f7ec329163070ae152928d24b1a982aeb8'
EOF
#docker run \
# --volume /var/lib/drone:/var/lib/drone \
# --volume /var/run/docker.sock:/var/run/docker.sock \
# --env-file /etc/drone/dronerc \
# --restart=always \
# --publish=80:8000 \
# --detach=true \
# --name=drone \
# drone/drone
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment