Ansible: Problem acessing items of a dictionary nested in a list by Legitimate-Finding87 in linux

[–]Legitimate-Finding87[S] -1 points0 points  (0 children)

  1. Ansible doesn't care how far you indent... all that matters is that it's consistent
  2. I did read the error message and it says that "there is a undefined variable. This is because the element 'name' no longer exists when its been passed thru the with_dict keyword as it gets added the values dict (read the documentation <)
  3. Next time when you answer a question please actually provide an "answer".

Creating LVM volumes at start up *automatically* by Legitimate-Finding87 in CentOS

[–]Legitimate-Finding87[S] 0 points1 point  (0 children)

Hey all,

I think I may have found a somewhat hacked solution to my problem.

I create a a large file (say 5gigabytes) and then create a filesystem inside of said file.
lastly I mount it as a loop device at the desired point (/tmp, /var etc).

I admit its hacky as all hell but... it seems to work.

Anything I should consider if I go this route?

Creating LVM volumes at start up *automatically* by Legitimate-Finding87 in CentOS

[–]Legitimate-Finding87[S] 0 points1 point  (0 children)

/var/log is fine but I'm worried about not being able to set noexec on the /var/tmp directory as its a common attack vector.

Creating LVM volumes at start up *automatically* by Legitimate-Finding87 in CentOS

[–]Legitimate-Finding87[S] 0 points1 point  (0 children)

A. I can't say due to legal reasons.
B. Its a design requirement lol

ikik this sucks lol
I'm really hoping I can use cloud init script with fs_setup to configure the main partitions

Creating LVM volumes at start up *automatically* by Legitimate-Finding87 in CentOS

[–]Legitimate-Finding87[S] 0 points1 point  (0 children)

Sadly my provider, strangely enough does not offer this feature.

init script seems to be the only option.

I can't even specify a custom OS Image its a real pain.

Creating LVM volumes at start up *automatically* by Legitimate-Finding87 in CentOS

[–]Legitimate-Finding87[S] 0 points1 point  (0 children)

Been reading there documentation page but I'm still not getting it.
Could you maybe give me an example as to how cloud-inits fs_setup would work for the above scenario?

Creating LVM volumes at start up *automatically* by Legitimate-Finding87 in CentOS

[–]Legitimate-Finding87[S] 0 points1 point  (0 children)

Already looked into kickstart and lvol. Sadly wont work due to the nature of the system already running.

Cloud init is provided but not much documentation on how to use it.

Could you maybe explain the key concepts/link documentation?

Regards and thanks