added focal-fossa

pull/1/head
dcore94 2 years ago
parent 0796aa7d5f
commit bf6ba5c468

@ -1,18 +0,0 @@
{
"variables" : {
"id" : "84127ecc-6892-4c63-8860-16a4f491fe4c"
},
"builders": [
{
"type": "lxd",
"name": "focal-fossa",
"image": "ubuntu:20.04",
"output_image": "focal-fossa:{{user `id`}}",
"publish_properties": {
"description": "This is a default empty Ubuntu 20.04 (\"Focal Fossa\") Runtime provided as LXD container."
}
}
],
"provisioners": [],
"post-processors": []
}

@ -0,0 +1,26 @@
- hosts: localhost
tasks:
# Create folder for execution
- name: Create dir
file:
state: directory
path: "/tmp/{{ runtime }}"
# Pull repository
- name: pull repository
git:
repo: "{{ repository }}"
version: "{{ version }}"
dest: "/tmp/{{ runtime }}"
# Packer build
- name: build
command: packer build build.json
args:
chdir: "/tmp/{{ runtime }}"
# Destroy folder for execution
- name: Destroy build folder
file:
state: absent
path: "/tmp/{{ runtime }}"

@ -0,0 +1,19 @@
{
"id":"a3c21b11-23eb-4b8f-8bcf-2160be5cc2a2",
"active":true,
"name":"focal-fossa",
"description":"An example empty LXD runtime based on Ubuntu focal fossa 20.04",
"keywords":[
"lxd",
"linux",
"ubuntu",
"focal-fossa",
"bash"
],
"responsible":{
"name":"Marco Lettere",
"email":"m.lettere@gmail.com"
},
"type":"lxd",
"image":"ubuntu:20.04"
}

@ -0,0 +1,20 @@
{
"variables" : {
"id" : "84127ecc-6892-4c63-8860-16a4f491fe4c"
"description" : "This is a default empty Ubuntu 20.04 (\"Focal Fossa\") Runtime provided as LXD container.",
"name" : "focal-fossa",
},
"builders": [
{
"type": "{{ user `type` }}",
"name": "{{ user `name`}} ",
"image": "ubuntu:20.04",
"output_image": "{{ user `name` }}:{{user `id`}}",
"publish_properties": {
"description": "{{ user `description`}}"
}
}
],
"provisioners": [],
"post-processors": []
}
Loading…
Cancel
Save