Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Infrastructure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EIT-SWE
Infrastructure
Commits
c2eb3360
Commit
c2eb3360
authored
Nov 07, 2017
by
CHRISTOPHER PIKE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of git.psu.edu:ais-swe/infrastructure into develop
parents
408f2b92
cdd506f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
12 deletions
+41
-12
README.md
README.md
+12
-11
roles/postgresql_instance/tasks/main.yml
roles/postgresql_instance/tasks/main.yml
+29
-1
No files found.
README.md
View file @
c2eb3360
Instructions for setting up Vagrant/Ansible on a new machine
Install Virtual Box
go to https://www.virtualbox.org/wiki/Linux_Downloads
Click on the appropriate version to install
Select open with package manager
-
go to https://www.virtualbox.org/wiki/Linux_Downloads
-
Click on the appropriate version to install
-
Select open with package manager
Get the OS for Virtual Box
vagrant box add precise32 http://files.vagrantup.com/precise32.box
vagrant box add centos-6.4-32 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20130427.box
-
vagrant box add precise32 http://files.vagrantup.com/precise32.box
-
vagrant box add centos-6.4-32 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-i386-v20130427.box
-
vagrant box add centos-6.7-64 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.7-x86_64-v20151108.box
Install AnsibleDirections from http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansiblesudo
apt-get updatesudo
apt-get install ansible
-
sudo apt-get install software-properties-common
-
sudo apt-add-repository ppa:ansible/ansiblesudo
-
apt-get updatesudo
-
apt-get install ansible
Vagrant repo setup
git submodule init
git submodule update
-
git submodule init
-
git submodule update
roles/postgresql_instance/tasks/main.yml
View file @
c2eb3360
...
...
@@ -12,7 +12,35 @@
become
:
true
become_user
:
postgres
-
name
:
create password file on vagrant box
-
name
:
create password file on vagrant box for postgres user
become
:
true
become_user
:
postgres
lineinfile
:
dest
:
~/.pgpass
state
:
present
create
:
yes
line
:
"
{{
item
}}"
mode
:
0600
with_items
:
-
"
#hostname:port:database:username:password"
-
"
localhost:5432:{{
db_name
}}:{{
db_user
}}:{{
db_user_pw
}}"
-
name
:
create password file on vagrant box for vagrant user
become
:
true
become_user
:
vagrant
lineinfile
:
dest
:
~/.pgpass
state
:
present
create
:
yes
line
:
"
{{
item
}}"
mode
:
0600
with_items
:
-
"
#hostname:port:database:username:password"
-
"
localhost:5432:{{
db_name
}}:{{
db_user
}}:{{
db_user_pw
}}"
-
name
:
create password file on vagrant box for root user
become
:
true
become_user
:
root
lineinfile
:
dest
:
~/.pgpass
state
:
present
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment