Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749688
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
README.md
View Options
#
What
Terraform
allows
to
transparently
declare
our
infrastructure
as
code
.
Providing
a
(
non
-
official
so
far
)
plugin
,
we
can
provision
vm
the
same
way
for
our
rocq
infra
(
proxmox
)
##
Prepare
workstation
See
prepare
-
workstation
.
md
##
setup
.
sh
Create
a
`
setup
.
sh
`
file
holding
the
PM_
{
USER
,
PASS
}
information
:
```
export
PM_USER
=<
swh
-
login
>@
pam
export
PM_PASS
=<
swh
-
login
-
pass
>
```
source
it
in
your
current
shell
session
.
```
source
setup
.
sh
```
##
provision
infra
```
terraform
init
terraform
apply
```
#
Details
The
provisioning
is
bootstraping
vms
declared
in
".tf"
files
(
in
dependency
order
if
any
).
It
'
s
using
a
base
template
(
either
debian
-
9
-
template
,
debian
-
10
-
template
)
installed
in
the
hypervisor
.
Instructions
are
detailed
in
the
`
init
-
template
.
md
`
file
.
##
Init
This
initializes
your
local
copy
with
the
necessary
:
```
terraform
init
```
##
Plan
changes
Parse
all
*.
tf
files
present
in
the
folder
,
then
compute
a
differential
plan
:
```
terraform
plan
```
##
Apply
changes
Propose
to
apply
the
plan
to
the
infra
(
interactively
):
```
terraform
apply
```
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 25, 6:05 PM (2 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3273430
Attached To
rSPRE sysadm-provisioning
Event Timeline
Log In to Comment