<p>Hi!</p>
<p>Introducing <a href="https://github.com/Skarlso/yogsothoth">Yogsothoth</a>. It wraps DigitalOcean assets like, Droplets, Firewalls, FloatingIPs and more.</p>
<p>Here is what it looks like to configure a DigitalOcean stack: </p>
<p>```yaml
Parameters:
StackName:
Description: The name of the stack to deploy
Type: String
Default: FurnaceStack
Port:
Description: Test port
Type: Number
Default: 80</p>
<p>Resources:
Droplet1:
Name: MyDroplet
Region: region
Size: size
Backups: false
IPv6: false
PrivateNetworking: false
Monitoring: false
Type: Droplet
Image:
Slug: "ubuntu-14-04-x64"
FloatingIP:
Type: FloatingIP
Region: nyc3
DropletID: MyDroplet
LoadBalancer:
Name: TestBalancer
Algorithm: random
Region: nyc3
Tag: BalancerTest
RedirectHttpToHttps: true
HealthCheck:
Protocol: http
Port: 1234
Path: /health
CheckIntervalSeconds: 15
ResponseTimeoutSeconds: 150
HealthyThreshold: 2
UnhealthyThreshold: 4
Type: LoadBalancer
DropletIDs:
- MyDroplet
FireWall:
Name: MyFirewall
InboundRules:
Inbound1:
Protocol: ProtocolValue
PortRange: 2345:2345
Sources:
Addresses:
- skarlso.io
- nagios.skarlso.io
Tags:
- Multiple
- Tags
DropletIDs:
- 1234
LoadBalancerUIDs:
- UID1
- UID2
OutboundRules:
Outbound1:
Protocol: ProtocolValue2
PortRange: 1234:2345
Destinations:
Addresses:
- skarlso.io
- nagios.skarlso.io
Tags:
- Outbound
- Tags
DropletIDs:
- 4321
LoadBalancerUIDs:
- UID3
- UID4
DropletIDs:
- MyDroplet
- 12
```</p>
<p>The main resource is a Droplet. Almost everything is moving around that. Some resources aren't tagged properly and DigitalOcean has yet to come out with their own thing that does this.</p>
<p>Right now only <code>create</code> works. The rest is in progress.</p>
<hr/>**评论:**<br/><br/>folago: <pre><p>Someone is fond of Lovecraft.</p></pre>skarlso: <pre><p>Got me there. ? Also following their theme of having a Cthulhu named go monorepo code base. ☺️</p></pre>hell_0n_wheel: <pre><p><a href="https://www.terraform.io" rel="nofollow">https://www.terraform.io</a></p></pre>skarlso: <pre><p>Yeah it's a completely different system with a huge dependency and complex structer as opposed to this which is a really lightweight library. But yes, I'm aware of terraform. :-)</p></pre>
Yogsothoth: DigitalOcean Library which lets you handle DigitalOcean assets like CloudFormation stacks
blov · · 1647 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传