-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(apple-silicon): add tutorial ansible and terraform #3823
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,229 @@ | |||
--- | |||
meta: | |||
title: Automating Apple Silicon Server Creation with Terraform and Ansible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: Automating Apple Silicon Server Creation with Terraform and Ansible | |
title: Automating Apple silicon server creation with Terraform and Ansible |
--- | ||
meta: | ||
title: Automating Apple Silicon Server Creation with Terraform and Ansible | ||
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools | |
description: Learn how to automate the creation and management of Apple silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools. |
title: Automating Apple Silicon Server Creation with Terraform and Ansible | ||
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools | ||
content: | ||
h1: Automating Apple Silicon Server Creation with Terraform and Ansible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h1: Automating Apple Silicon Server Creation with Terraform and Ansible | |
h1: Automating Apple silicon server creation with Terraform and Ansible |
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools | ||
content: | ||
h1: Automating Apple Silicon Server Creation with Terraform and Ansible | ||
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools | |
description: Learn how to automate the creation and management of Apple silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools. |
tutorials/how-to-setup-applesilicon-server-with-terraform-ansible/index.mdx
Outdated
Show resolved
Hide resolved
tutorials/how-to-setup-applesilicon-server-with-terraform-ansible/index.mdx
Outdated
Show resolved
Hide resolved
tutorials/how-to-setup-applesilicon-server-with-terraform-ansible/index.mdx
Outdated
Show resolved
Hide resolved
tutorials/how-to-setup-applesilicon-server-with-terraform-ansible/index.mdx
Outdated
Show resolved
Hide resolved
tutorials/how-to-setup-applesilicon-server-with-terraform-ansible/index.mdx
Outdated
Show resolved
Hide resolved
tutorials/how-to-setup-applesilicon-server-with-terraform-ansible/index.mdx
Outdated
Show resolved
Hide resolved
|
||
## Understanding the Tools | ||
|
||
### HashiCorp Terraform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention OpenTofu as well
|
||
### Using Ansible | ||
|
||
1. Install Ansible: If you don't have Ansible installed on your system, you can easily install it using pip, the Python package manager. Run the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would simply put a link to the ansible documentation as it can cover more up to date information and many platforms
register: applesilicon_server | ||
``` | ||
|
||
6. Set Up Your Scaleway Credentials: Replace the placeholders {{ scw_access_key }}, {{ scw_secret_key }}, and {{ scw_project_id }} with your actual credentials. It’s a good practice to store these values in environment variables or an Ansible vault for added security. Alternatively, you can use a .env file or an external credentials file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you show a command line example about how to pass environment variables through the command line?
register: applesilicon_server | ||
``` | ||
|
||
6. Set Up Your Scaleway Credentials: Replace the placeholders {{ scw_access_key }}, {{ scw_secret_key }}, and {{ scw_project_id }} with your actual credentials. It’s a good practice to store these values in environment variables or an Ansible vault for added security. Alternatively, you can use a .env file or an external credentials file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way for ansible to catch those variables if they are already defined in the scaleway configuration file? It could be an alternative to passing the variables around
gather_facts: no | ||
tasks: | ||
- name: Create an Apple Silicon server | ||
scaleway.scaleway.scaleway_applesilicon_server: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is completely redundant with the terraform part of the tutorial. I fail to see what this steps provides. One useful alternative could be to either:
- split this tutorial in two (one part for terraform, the other for ansible)
- replace the ansible part with a part that show how to interconnect terraform and ansible using
local-exec
https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
…ble/index.mdx Co-authored-by: Benedikt Rollik <[email protected]>
Co-authored-by: Benedikt Rollik <[email protected]>
da2748a
to
0f533c7
Compare
Your checklist for this pull request
Description
Please describe what you added or changed.