This adds the ability to build a tar output image. The /compose and
/compose/types API routes are now available.
To start a build POST a JSON body to /compose, like this:
{"recipe_name":"glusterfs", "compose_type":"tar", "branch":"master"}
This will return a unique build id:
{
  "build_id": "4d13abb6-aa4e-4c80-a671-0b867e6e77f6",
  "status": true
}
which will be used to keep track of the build status (routes for this
do not exist yet).
		
	
			
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Lorax Composer tar output kickstart template
 | |
| 
 | |
| #
 | |
| sshpw --username=root --plaintext randOmStrinGhERE
 | |
| # Firewall configuration
 | |
| firewall --enabled
 | |
| 
 | |
| # Root password
 | |
| rootpw --plaintext removethispw
 | |
| # Network information
 | |
| network  --bootproto=dhcp --onboot=on --activate
 | |
| # System authorization information
 | |
| auth --useshadow --enablemd5
 | |
| # System keyboard
 | |
| keyboard --xlayouts=us --vckeymap=us
 | |
| # System language
 | |
| lang en_US.UTF-8
 | |
| # SELinux configuration
 | |
| selinux --enforcing
 | |
| # Installation logging level
 | |
| logging --level=info
 | |
| # Shutdown after installation
 | |
| shutdown
 | |
| # System timezone
 | |
| timezone  US/Eastern
 | |
| # System bootloader configuration
 | |
| bootloader --location=mbr
 | |
| # Clear the Master Boot Record
 | |
| zerombr
 | |
| # Partition clearing information
 | |
| clearpart --all
 | |
| # Disk partitioning information
 | |
| part / --fstype="ext4" --size=4000
 | |
| part swap --size=1000
 | |
| 
 | |
| %post
 | |
| # Remove root password
 | |
| passwd -d root > /dev/null
 | |
| 
 | |
| # Remove random-seed
 | |
| rm /var/lib/systemd/random-seed
 | |
| %end
 | |
| 
 | |
| # NOTE Do NOT add any other sections after %packages
 | |
| %packages
 | |
| # Packages requires to support this output format go here
 | |
| 
 | |
| 
 | |
| # NOTE lorax-composer will add the recipe packages below here, including the final %end
 |