Skip to content

Commit

Permalink
docs(readme): removes garbage, adds adoc tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dzintars committed Jun 26, 2021
1 parent 823fd61 commit 76eae28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
20 changes: 0 additions & 20 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,4 @@ This module provisions the new Libvirt virtual machine.
It is tied to Vault secret managment engine and so most likely You should not
use this module.

[NOTE]
====
A sample note admonition.
We can use gemoji icons in the Asciidoctor markup.
We assign an icon name to the document
attributes `tip-caption`, `note-caption` and `important-caption`.
====

TIP: This module is used in https://github.com/oswee/ignite[oswee/ignite] repository.

[source]
----
\ifdef::env-github[] <1> (1)
:imagesdir: https://gist.githubusercontent.com/path/to/gist/revision/dir/with/all/images
endif::[]
\ifndef::env-github[] <2>
:imagesdir: ./
endif::[]
----
<1> Use the `ifdef` to customize for online rendering (2)
<2> Use the `ifndef` to customize for offline
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ resource "libvirt_volume" "volume" {
pool = local.volume.pool
}

# tag::tagname[]

resource "libvirt_cloudinit_disk" "cloudinit" {
name = "${local.cloudinit.name}-cloudinit.iso"
user_data = data.template_file.user_data.rendered
network_config = data.template_file.network_config.rendered
pool = local.volume.pool
}

# end::tagname[]

resource "libvirt_domain" "domain" {
name = local.domain.name
memory = local.domain.memory
Expand Down

0 comments on commit 76eae28

Please sign in to comment.