Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stillru/astralinux-packer-template
Templates for Packer - Astra Linux Common Edition
https://github.com/stillru/astralinux-packer-template
astralinux-packer-template packer vagrant
Last synced: 3 months ago
JSON representation
Templates for Packer - Astra Linux Common Edition
- Host: GitHub
- URL: https://github.com/stillru/astralinux-packer-template
- Owner: stillru
- Created: 2020-11-15T21:44:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T14:56:31.000Z (over 3 years ago)
- Last Synced: 2024-10-23T02:50:53.557Z (3 months ago)
- Topics: astralinux-packer-template, packer, vagrant
- Language: Shell
- Homepage:
- Size: 147 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.en.md
- Changelog: CHANGELOG.rst
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
**Table of Contents**
- [WARNING!](#warning)
- [Boxes description](#boxes-description)
- [Prerequisites](#prerequisites)
- [Build vagrant box](#build-vagrant-box)
- [Install your new box](#install-your-new-box)
- [Vagrant](#vagrant)
- [Getting Started](#getting-started)
- [FB Post](#fb-post)# WARNING!
Project in ALPHA state!# Description
## Project Goal
This project goal - create `pcaker` teamplate usefull for creation `vagrant box` with debian derivative `Astra Linux Common Edition`.
## Prerequisites
- (required) `packer` == 1.6.5
- (required) `vagrant` => 2.2.13
- (required) `ansible` => 2.10.2## Getting started
### Configure variables in astra-common-x.x.x-netinst.json
For correct working pipeline you should correct this variables in file:
| Level | Variable | Description |
|--------------|--------------|--------------------------------------------------------------------------------------|
| [required] | `ip_address` | ip-address of host machine. |
| [optional] | `cpus` | CPU cores for construction. |
| [optional] | `name` | hostname of VM. |
| [optional] | `domain` | domain of VM. |
| [required] | `version` | Operatin System Version - used for generation some files and file-structure creation |
| [do not edit]| `user` | Default username unprivilaged user. |
| [do not edit]| `password` | Default password unprivilaged user. |
| [optional] | `size` | HDD virchual size. Default variable "30000" bytes. |
| [optional] | `mirror` | URI for iso-image. |
| [required] | `md5sum` | MD5 for iso-image. |### Configure variables in ansible/vars.yml
!! Doc in progress
## Generate new box
### Generate box with GUI
Command to run `packer`:
``` shell
packer build -var version=x.x.x -var type=Desktop astra-common-x.x.x-netinst.json
```Variable `version` not required.
Variable `type` is required and shuld be `Desktop` or `Server`. Depend of witch type you need.
All variables like `x.x.x` shuld be replaced with actual var. Need attention to file `astra-orel-x.x.x-Desktop.cfg` or `astra-orel-x.x.x-Server.cfg` at `http` directory.
At the end of process you shuld see something like:
``` shell
Build 'astra-orel' finished after 1 hour 50 minutes.==> Wait completed after 1 hour 50 minutes
==> Builds finished. The artifacts of successful builds are:
--> astra-orel: 'libvirt' provider box: boxes/astra-orel/libvirt/x.x.x/astra-orel-x.x.x-Desktop.box
```
### Generate box without GUI!! Work in progress
## Install your new box
```
$ vagrant box add astra-orel-x.x.x boxes/astra-orel/libvirt/x.x.x/astra-orel-x.x.x-Desktop.box --force
```The VM image has been imported to vagrant, it's now available on your system.
## Vagrant
### Getting Started
To use this image with Vagrant, create a vagrant file:
```
$ vagrant init astra-orel-x.x.x-Desktop
```Add this line in `Vagrantfile`:
```
config.vm.synced_folder '.', '/home/vagrant/sync', disabled: true
```And initialize the vm:
```
$ vagrant up --provider libvirt
```### FB Post
Hello from cold Russian Capital!Let me introduce you my first packer template and another debian based distro.
I need some help with testing this template. On my machine all work pretty well. But i havent another one to test in different circumstances. https://github.com/stillru/astralinux-packer-template