官术网_书友最值得收藏!

Working with cloud providers

Under normal circumstances, users execute the ansible-playbook command from a system, say A. This system has inventory, playbooks, roles, variable definitions and other information required to configure a remote system, say B, to a desired state.

When we talk about building infrastructure using Ansible, things change a bit. Now, we are not configuring a remote system. We are actually interacting with a cloud provider to create or allocate certain resources to us. We may, at a later point in time, choose to configure these resources using Ansible as well. Interacting with a cloud provider is slightly different from executing a regular playbook. There are two important points that we need to keep in mind:

  • A lot of the tasks will execute on the local machine and will interact with API provided by a cloud provider. In principle, we won't need SSH setup because, in typical cases, requests will go from our local machine to the cloud provider using HTTPS.
  • The cloud provider will need to authenticate and authorize our requests. Usually this is done by providing a set of secrets, or keys, or tokens. Since these tokens are sensitive, we should learn a little bit about Ansible Vault.
主站蜘蛛池模板: 南阳市| 肇东市| 老河口市| 饶平县| 常宁市| 建德市| 宿州市| 礼泉县| 五大连池市| 哈尔滨市| 阿尔山市| 清水县| 通江县| 巨鹿县| 万宁市| 灵石县| 双峰县| 宝兴县| 堆龙德庆县| 泰来县| 安远县| 八宿县| 泾川县| 白沙| 屏边| 卫辉市| 晋城| 肥东县| 平远县| 武鸣县| 自贡市| 永平县| 昆明市| 桃园县| 玛纳斯县| 阳高县| 阿拉善右旗| 元氏县| 淳安县| 淮安市| 牙克石市|