Notes
Notes - notes.io |
consul acl policy create -name "ui-policy" -rules @ui.hcl -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl token create -description "Token for UI" -policy-name ui-policy -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl policy create -name consul-servers -rules @server.hcl -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl token create -description "Token for Consul Servers" -policy-name consul-servers -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl set-agent-token agent "7c9ddc24-8350-d595-d64d-582fe15b806c"
consul acl policy create -name "dns-requests" -rules @dns.hcl -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl token create -description "Token for DNS Requests" -policy-name dns-requests -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl set-agent-token default "64566ca7-5231-2973-ba2d-712fb04ba81d" - ne otrabotalo!!!
Propisivau server.hcl kak agent token. a dns-requests kak default token v consul.hcl >> restart consul na vseh serverah!
Archive logs every day:
#/bin/bash
cd /var/log/consul && tar czf consul_logs_$(date +"%Y-%m-%d").tgz ./*.log --remove-files
crontab every day 2:30 AM
consul acl policy create -name "services-nodes" -rules @services-nodes.hcl -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl token create -description "Token for services ms-tk and nodes ms-nodes" -policy-name services-nodes -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl policy create -name "kv" -rules @kv.hcl -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
consul acl token create -description "Token for kv" -policy-name kv -token "a3963e8e-a031-efac-b906-1dd56d9daabb"
[tukhtaev@ms-node5 acls]$ cat policies/dns.hcl
node_prefix "" {
policy = "read"
}
service_prefix "" {
policy = "read"
}
# only needed if using prepared queries
query_prefix "" {
policy = "read"
}
[tukhtaev@ms-node5 acls]$ cat policies/server.hcl
node "ms-node3" {
policy = "write"
}
node "ms-node4" {
policy = "write"
}
node "ms-node5" {
policy = "write"
}
node_prefix "" {
policy = "write"
}
service_prefix "" {
policy = "write"
}
# only needed if using prepared queries
query_prefix "" {
policy = "write"
}
[tukhtaev@ms-node5 acls]$ cat policies/ui.hcl
service_prefix "" {
policy = "read"
}
key_prefix "" {
policy = "read"
}
node_prefix "" {
policy = "read"
}
## service-nodes.hcl
service_prefix "ms-tk" {
policy = "write"
}
node_prefix "ms-node" {
policy = "write"
}
service "" {
policy = "read"
}
kv.hcl
key_prefix "" {
policy = "write"
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
