Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: support for Ubuntu 14.04 #735

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/playbooks/create-webhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- hosts: infra-digitalocean-ubuntu1604-x64-1
roles:
- bootstrap
- baselayout
- package-upgrade
- baselayout
- { role: nginx, sites: [ 'nodejs.org', 'iojs.org', 'dist.libuv.org' ] }

pre_tasks:
Expand Down
2 changes: 1 addition & 1 deletion ansible/playbooks/jenkins/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

roles:
- bootstrap
- baselayout
- package-upgrade
- baselayout
- jenkins-worker

vars:
Expand Down
2 changes: 1 addition & 1 deletion ansible/playbooks/jenkins/worker/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

roles:
- bootstrap
- baselayout
- package-upgrade
- baselayout
- jenkins-worker

pre_tasks:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/baselayout/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#

- name: restart sshd
service: name=sshd state=restarted
service: name="{{ sshd_service_name }}" state=restarted
10 changes: 10 additions & 0 deletions ansible/roles/baselayout/tasks/partials/ntp/ntp_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

#
# enable/start the os-bundled ntpd
#
# package and service are 'ntp' but 'ntpd' is started
#

- name: start ntpd
service: name=ntp state=started enabled=yes
13 changes: 12 additions & 1 deletion ansible/roles/baselayout/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ git_version: 2.10.2

ssh_config: /etc/ssh/sshd_config

sshd_service_map: {
'ubuntu1404': 'ssh',
}

sshd_service_name: "{{ sshd_service_map[os]|default(sshd_service_map[os|stripversion])|default('sshd') }}"

ntp_service: {
systemd: ['debian8', 'ubuntu1404', 'ubuntu1604', 'ubuntu1610']
systemd: ['debian8', 'ubuntu1604', 'ubuntu1610'],
ntp_package: ['ubuntu1404']
}

common_packages: [
Expand Down Expand Up @@ -104,5 +111,9 @@ packages: {
'g++',
'gcc',
'git',
],

ubuntu1404: [
'ntp',
]
}
5 changes: 2 additions & 3 deletions ansible/roles/java-base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# installs java
#

- name: install java
package: name="{{ java_package_name }}" state=present
# if this fails you want to check in vars/main.yml and add package name
# as appropriate -- try to use generic os family if available.
failed_when: "'{{ java_package_name }}' == 'missing'"
- name: install java
package: name="{{ java_package_name }}" state=present

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

1 change: 1 addition & 0 deletions ansible/roles/java-base/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ packages: {
'freebsd': 'openjdk8-jre',
'smartos': 'openjdk8',
'ubuntu': 'openjdk-8-jre-headless',
'ubuntu1404': 'openjdk-7-jre-headless',

This comment was marked as off-topic.

This comment was marked as off-topic.

}

java_package_name: "{{ packages[os]|default(packages[os|stripversion])|default('missing') }}"
1 change: 1 addition & 0 deletions ansible/roles/jenkins-worker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
url: "{{ jenkins_worker_jar }}"
dest: /home/{{ server_user }}/slave.jar
mode: 0644
timeout: 60

- name: render init script into place
template:
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/jenkins-worker/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ init: {
debian: ['debian7', 'ubuntu1204'],
freebsd: 'freebsd',
openrc: 'alpine',
systemd: ['centos7', 'debian8', 'fedora', 'ubuntu1404', 'ubuntu1604',
systemd: ['centos7', 'debian8', 'fedora', 'ubuntu1604',
'ubuntu1610'],
svc: 'smartos',
upstart: 'ubuntu12'
upstart: ['ubuntu12', 'ubuntu1404']
}

jenkins_init: {
Expand Down