Closed linuxplayground closed 6 years ago
Using this repo to deploy and configure squid on Amazonlinux in AWS.
{ "variables": { "aws_region": "us-west-2" }, "builders": [{ "name": "amazon-linux-ami", "ami_name": "sharedservices-proxy-{{isotime | clean_ami_name}}", "ami_description": "Sharedservices Proxy AMI", "instance_type": "t2.micro", "region": "{{user `aws_region`}}", "type": "amazon-ebs", "source_ami_filter": { "filters": { "virtualization-type": "hvm", "architecture": "x86_64", "name": "*amzn-ami-hvm-*", "block-device-mapping.volume-type": "gp2", "root-device-type": "ebs" }, "owners": ["amazon"], "most_recent": true }, "ssh_username": "ec2-user" }], "provisioners": [{ "type": "shell", "script": "./init.sh", "pause_before": "30s" }, { "type": "ansible-local", "playbook_file": "playbook.yml", "galaxy_file": "requirements.yml" }] }
#!/usr/bin/env bash sudo yum-config-manager --enable epel sudo yum -y update sudo yum -y install git ansible
---
hosts: all become: true
vars: squid_acl_localnet:
roles:
@linuxplayground Merged! Thanks for this!
Using this repo to deploy and configure squid on Amazonlinux in AWS.
Test with Packer from Hashicorop
hosts: all become: true
vars: squid_acl_localnet:
roles: