Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
3adfcfcd
Commit
3adfcfcd
authored
Oct 14, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hacking out AWS specific commands.
parent
78ba8aef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
docker/build/precise-common/Dockerfile
+1
-1
playbooks/roles/common/tasks/main.yml
+15
-14
No files found.
docker/build/precise-common/Dockerfile
View file @
3adfcfcd
FROM
ubuntu:precise
MAINTAINER
e
0d
MAINTAINER
e
dxops
RUN
apt-get update
RUN
apt-get
-y
install
sudo
...
...
playbooks/roles/common/tasks/main.yml
View file @
3adfcfcd
...
...
@@ -104,18 +104,18 @@
hostname -F /etc/hostname
when
:
COMMON_HOSTNAME|length >0 and (etc_hosts.changed or etc_hostname.changed)
-
name
:
update /etc/dhcp/dhclient.conf
template
:
src=etc/dhcp/dhclient.conf.j2 dest=/etc/dhcp/dhclient.conf
when
:
COMMON_CUSTOM_DHCLIENT_CONFIG
-
name
:
add ssh-warning banner motd
template
:
>
dest=/etc/motd.tail
src={{ COMMON_MOTD_TEMPLATE }} mode=0755 owner=root group=root
-
name
:
update ssh config
template
:
>
dest=/etc/ssh/sshd_config
src=sshd_config.j2 mode=0644 owner=root group=root
notify
:
restart ssh
#
- name: update /etc/dhcp/dhclient.conf
#
template: src=etc/dhcp/dhclient.conf.j2 dest=/etc/dhcp/dhclient.conf
#
when: COMMON_CUSTOM_DHCLIENT_CONFIG
#
- name: add ssh-warning banner motd
#
template: >
#
dest=/etc/motd.tail
#
src={{ COMMON_MOTD_TEMPLATE }} mode=0755 owner=root group=root
#
- name: update ssh config
#
template: >
#
dest=/etc/ssh/sshd_config
#
src=sshd_config.j2 mode=0644 owner=root group=root
#
notify: restart ssh
\ No newline at end of file
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