summaryrefslogtreecommitdiffstats
path: root/packer/provision/local-builder.yaml
blob: 31ce7f83ab2eba82ec537c9da65deefec04a6bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
- import_playbook: ../common-packer/provision/baseline.yaml

- hosts: all
  become_user: root
  become_method: sudo

  pre_tasks:
    - include_role: name=lfit.system-update

  tasks:
    - name: 'Install FD.io Required 16.04 Packages'
      apt:
        name:
          - gdb
          - gdbserver
          - bridge-utils
          - texlive-fonts-recommended
          - tex-common
          - texlive-base
          - texlive-binaries
          - texlive-pictures
          - texlive-latex-recommended
          - preview-latex-style
          - texlive-latex-extra
          - cloud-initramfs-growroot
          - cloud-initramfs-rescuevol
          - libmysqlclient-dev
          - doxygen
          - python-pyparsing
          - asciidoc
          - dblatex
          - source-highlight
          - lcov
          - gcc-multilib
          - bison
          - ccache
          - dkms
          - libganglia1-dev
          - libapr1-dev
          - libconfuse-dev
          - exuberant-ctags
          - cscope
          - indent
          - emacs
          - libxslt-dev
          - bc
          - linux-image-extra-virtual
          - google-mock
          - debian-xcontrol
          - pristine-tar
          - python-sphinx
          - python-scapy
          - inkscape
          - python-sphinx-rtd-theme
          - python3-sphinx
          - libnuma-dev
          - libibverbs-dev
          - ruby-dev
          - zip
        state: present
      # yamllint disable-line rule:line-length
      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'
      become: true

    - name: 'Install FD.io Required 18.04 Packages'
      apt:
        name:
          - gdb
          - gdbserver
          - bridge-utils
          - texlive-fonts-recommended
          - tex-common
          - texlive-base
          - texlive-binaries
          - texlive-pictures
          - texlive-latex-recommended
          - preview-latex-style
          - texlive-latex-extra
          - cloud-initramfs-growroot
          - cloud-initramfs-rescuevol
          - libmysqlclient-dev
          - doxygen
          - python-pyparsing
          - asciidoc
          - dblatex
          - source-highlight
          - lcov
          - bison
          - ccache
          - dkms
          - libganglia1-dev
          - libapr1-dev
          - libconfuse-dev
          - exuberant-ctags
          - cscope
          - indent
          - emacs
          - libxslt-dev
          - bc
          - linux-image-extra-virtual
          - google-mock
          - debian-xcontrol
          - pristine-tar
          - python-sphinx
          - libstdc++5
          - python-scapy
          - inkscape
          - python-sphinx-rtd-theme
          - python3-sphinx
          - libnuma-dev
          - libibverbs-dev
          - ruby-dev
          - zip
          - libevent-dev
          - libboost-system-dev
          - libcurl4-openssl-dev
          - libboost-regex-dev
          - libboost-filesystem-dev
          - git-core
          - libqtav-dev
          - libavcodec-dev
          - libavformat-dev
          - libswscale-dev
          - libavresample-dev
        state: present
      # yamllint disable-line rule:line-length
      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
      become: true

    - name: 'Install FD.io Required CentOS 7 Packages'
      yum:
        name:
          - apr-devel
          - asciidoc
          - autoconf
          - ccache
          - dblatex
          - dkms
          - epel-rpm-macros
          - ganglia-devel
          - glibc-static
          - kernel-devel
          - libcap-devel
          - libconfuse-devel
          - libconfuse-devel
          - python-sphinx
          - redhat-lsb
          - ruby-devel
          - scapy
          - source-highlight
          - valgrind
        state: present
      when: ansible_os_family == 'RedHat'
      become: true

  roles:
    - lfit.mono-install

  post_tasks:
    - name: System Reseal
      script: ../common-packer/provision/system-reseal.sh
      become: true