blueprint: move pipeline generation into its own package
Introduce the `distro` package, which contains an interface for OS implementations. Its main purpose is to convert a blueprint to a distro-specific pipeline. Also introduce the `distro/fedora30` package. It is the first implementation of the distro interface. Most of its code has been copied with minimal modifications from the blueprint package. The `blueprint` package is now back to serving a single purpose: representing a weldr blueprint. It does not depend on the `pipeline` package anymore. Change osbuild-composer and osbuild-pipeline to use the new API, hard-coding "fedora-30". This looks a bit weird now, but is the same behavior as before. All test cases now also take an "distro" key in the "compose" object.
This commit is contained in:
parent
3ae39e54c5
commit
b33ed9e5d2
28 changed files with 661 additions and 541 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"filename": "image.ami",
|
||||
"output-format": "ami",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"output-format": "partitioned-disk",
|
||||
"filename": "disk.img",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"output-format": "ext4-filesystem",
|
||||
"filename": "filesystem.img",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"output-format": "openstack",
|
||||
"filename": "image.qcow2",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"output-format": "qcow2",
|
||||
"filename": "image.qcow2",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"output-format": "vhd",
|
||||
"filename": "image.vhd",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compose": {
|
||||
"distro": "fedora-30",
|
||||
"output-format": "vmdk",
|
||||
"filename": "disk.vmdk",
|
||||
"blueprint": {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue