Compare commits

...

3 Commits

Author SHA1 Message Date
Laurent Gourvenec 4895a1d7ad Matchbox: fix template ipxe.conf.pktpl.hcl 2023-02-08 16:10:57 +01:00
Laurent Gourvenec b0930e946a alpine: change apk mirrors
Mirrors at serverion.com are temporarily(?) unreachable.
2023-02-08 12:02:37 +01:00
Laurent Gourvenec ecb857ff45 README: fix typo 2023-02-08 12:01:09 +01:00
4 changed files with 19 additions and 19 deletions

View File

@ -10,7 +10,7 @@ This is a simple wrapper to help you build and publish images with "packer" and
### The "publisher" tool called "tools/one-templates"
This is a simple script to create and manage OpenNebula "Templates", all kinds of templates :
This is a simple script to create and manage OpenNebula "Templates", all kinds of templates:
* VMs
* Networks
* Images
@ -23,13 +23,13 @@ With this tool you can publish all the images and the necessary templates to act
* Packer >= 1.6.0
* virt-sparsify (optional)
* Ruby
* These ruby gems :
* These ruby gems:
* opennebula
* opennebula-cli
* opennebula-oca
* webrick
* An OpenNebula server or cluster >= 5.6 (with OpenNebula Flow and OneGate enabled)
* An account with the proper ACL on the OpenNebula server/cluster to :
* An account with the proper ACL on the OpenNebula server/cluster to:
* create/manage images
* create/manage vm templates
* create/manage services templates
@ -38,14 +38,14 @@ With this tool you can publish all the images and the necessary templates to act
## How to use the "build" tool ?
First you need to create the "publisher" "tools/one-templates" configuration.
This configuration is located in "./tools/.one-templates.conf".
Note that you can use a diffrent configuration file setting the TEMPLATER_CONFIG environment file before starting the build script.
This configuration is located in "./tools/.one-templates.conf".
Note that you can use a different configuration file setting the TEMPLATER_CONFIG environment file before starting the build script.
```
$ cat ./tools/one-templates.conf
user: myOpenNebulaUser
token: myVerySecretOpenNebulaTemporaryToken
builder_addr: IP Address of the building machine (offen you own local IP address)
builder_addr: IP Address of the building machine (often your own local IP address)
endpoint: http://myOpenNebulaServerAddress...
flow_endpoint: http://myOpenNEbulaServerAddress/oneflow
datastore_id: TheDataStoreIDForMyImages
@ -53,28 +53,28 @@ datastore_id: TheDataStoreIDForMyImages
When this configuration is done you can use the "build" tool.
The recipes are organised by OS, version and flavor, one OS contains various versions and falvors.
You can list the availabled OS and versions whith this command :
The recipes are organised by OS, version and flavor, one OS contains various versions and flavors.
You can list the available OS and versions with this command:
```
$ ./build list
You can build :
You can build :
* alpine :
- 3.16
```
To build all the flavors of a version you can run this command :
To build all the flavors of a version you can run this command:
```
$ ./build start alpine 3.16
```
To build only one flavor for on version you can run this command :
To build only one flavor for one version you can run this command:
```
$ ./build run alpine 3.16 k3s
```
`!!! Make shure the "base" falvor is build before trying to build another falvor. !!!`
`!!! Make sure the "base" flavor is build before trying to build another flavor. !!!`
```
$ ./build run alpine 3.16 base

View File

@ -14,13 +14,13 @@ locals {
AlpineEdge = {
type = "apk"
name = "community"
url = "http://mirror.serverion.com/alpine/edge/community"
url = "http://mirrors.ircam.fr/pub/alpine/edge/community"
enabled = true
}
AlpineEdgeTesting = {
type = "apk"
name = "testing"
url = "http://mirror.serverion.com/alpine/edge/testing"
url = "http://mirrors.ircam.fr/pub/alpine/edge/testing"
enabled = true
}
}
@ -76,4 +76,4 @@ locals {
K3S = local.ServiceK3S
}
}
}
}

View File

@ -6,13 +6,13 @@ locals {
AlpineEdge = {
type = "apk"
name = "community"
url = "http://mirror.serverion.com/alpine/edge/community"
url = "http://mirrors.ircam.fr/pub/alpine/edge/community"
enabled = true
}
AlpineEdgeTesting = {
type = "apk"
name = "testing"
url = "http://mirror.serverion.com/alpine/edge/testing"
url = "http://mirrors.ircam.fr/pub/alpine/edge/testing"
enabled = true
}
}
@ -87,4 +87,4 @@ locals {
Kubernetes = local.ServiceKubernetes
}
}
}
}

View File

@ -57,4 +57,4 @@ pxe-service=tag:!ipxe-ok, BC_EFI, "UEFI32 boot chainload to iPXE", snponly.efi
pxe-service=tag:!ipxe-ok, X86-64_EFI, "UEFI64 boot chainload to iPXE", snponly.efi
dhcp-userclass=set:ipxe,iPXE
dhcp-boot=tag:ipxe-ok,http://${Vars.ETH0.IP}:${Vars.Matchbox.HTTPPort}/boot.ipxe,,${Vars.ETH0.IP}
dhcp-boot=tag:ipxe-ok,http://${Vars.ETH0.IP}:${Vars.MatchBox.HTTPPort}/boot.ipxe,,${Vars.ETH0.IP}