ssbostan / maasta Goto Github PK
View Code? Open in Web Editor NEWMAAS Terraform Ansible
License: Apache License 2.0
MAAS Terraform Ansible
License: Apache License 2.0
Hi Saied,
First and foremost, thank you for publishing this code. At our company we are looking for better ways to automate infra provisioning, and we bumped into your article about MAASTA and from there into this repo.
I see you are not publishing this package in PyPI. Any specific reason for that? Any chance we are going to see that happening? Thanks!
Cheers
Hello there, first pf all thank you for making such a great tool. I was wondering how do I apply my own cloud_init script to the maasta wrapper so that when MaaS deploys the commissioned node it will apply the cloud_init script?
I installed python 3.8 on Ubuntu 22.04LTS so that I can try this wrapper but I am currently receiving these errors on my node.
(venv) ryzengrind@shogun:~/Documents/Workspaces/ClusterLab/ansible-playbooks/maasta/examples/single$ ./deploy
Initializing the backend...
Initializing provider plugins...
- Reusing previous version of suchpuppet/maas from the dependency lock file
- Using previously-installed suchpuppet/maas v3.1.3
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
maas_instance.docker: Refreshing state... [id=gafn6t]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# maas_instance.docker is tainted, so must be replaced
-/+ resource "maas_instance" "docker" {
~ id = "gafn6t" -> (known after apply)
# (5 unchanged attributes hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
maas_instance.docker: Refreshing state... [id=gafn6t]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# maas_instance.docker is tainted, so must be replaced
-/+ resource "maas_instance" "docker" {
~ id = "gafn6t" -> (known after apply)
# (5 unchanged attributes hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
maas_instance.docker: Destroying... [id=gafn6t]
maas_instance.docker: Still destroying... [id=gafn6t, 10s elapsed]
maas_instance.docker: Destruction complete after 12s
maas_instance.docker: Creating...
maas_instance.docker: Still creating... [10s elapsed]
maas_instance.docker: Still creating... [20s elapsed]
maas_instance.docker: Still creating... [30s elapsed]
maas_instance.docker: Still creating... [40s elapsed]
maas_instance.docker: Still creating... [50s elapsed]
maas_instance.docker: Still creating... [1m0s elapsed]
maas_instance.docker: Still creating... [1m10s elapsed]
maas_instance.docker: Still creating... [1m20s elapsed]
maas_instance.docker: Still creating... [1m30s elapsed]
maas_instance.docker: Still creating... [1m40s elapsed]
maas_instance.docker: Still creating... [1m50s elapsed]
maas_instance.docker: Still creating... [2m0s elapsed]
maas_instance.docker: Still creating... [2m10s elapsed]
maas_instance.docker: Still creating... [2m20s elapsed]
maas_instance.docker: Still creating... [2m30s elapsed]
maas_instance.docker: Still creating... [2m40s elapsed]
maas_instance.docker: Still creating... [2m50s elapsed]
maas_instance.docker: Still creating... [3m0s elapsed]
maas_instance.docker: Still creating... [3m10s elapsed]
maas_instance.docker: Still creating... [3m20s elapsed]
maas_instance.docker: Still creating... [3m30s elapsed]
maas_instance.docker: Still creating... [3m40s elapsed]
maas_instance.docker: Still creating... [3m50s elapsed]
maas_instance.docker: Still creating... [4m0s elapsed]
โท
โ Error: [ERROR] [resourceMAASInstanceCreate] Error waiting for instance (gafn6t) to become deployed: %!s(<nil>)
โ
โ with maas_instance.docker,
โ on main.tf line 25, in resource "maas_instance" "docker":
โ 25: resource "maas_instance" "docker" {
โ
โต
INFO: Ansible inventory created successfully.
PLAY [docker] ********************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************
fatal: [moved-gull.maas]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.20.235 port 22: Connection timed out", "unreachable": true}
PLAY RECAP ***********************************************************************************************************************************************************************
moved-gull.maas : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Kindly advise.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.