This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # salt/dev/redis/init.sls | |
| # Installs redis based on the pillar settings. | |
| {% if salt['pillar.get']('redis-server:enabled') %} | |
| {% set version = salt['pillar.get']('redis-server:version', {}) %} | |
| {% set dashVersion = salt['pillar.get']('redis-server:dash-version') %} | |
| {% set root = salt['pillar.get']('redis-server:root', '/etc/redis') %} | |
| {% set var = salt['pillar.get']('redis-server:var', '/etc/var') %} | |
| {% set port = salt['pillar.get']('redis-server:port', 6379) %} | |
| {% set checksum = salt['pillar.get']('redis-checksums:redis-' + version + '-checksum', {}) %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------- | |
| ID: download-redis | |
| Function: file.managed | |
| Name: /etc/redis/redis-2.8.19.tar.gz | |
| Result: False | |
| Comment: Unable to manage file: 'OrderedDict' object has no attribute 'find' | |
| Started: 19:05:24.393244 | |
| Duration: 10.26 ms | |
| Changes: | |
| ---------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local: | |
| Data failed to compile: | |
| ---------- | |
| Rendering SLS 'base:redis' failed: Unknown yaml render error; line 26 | |
| download-redis: | |
| archive: | |
| - extracted | |
| - name: {{ root }}/redis-{{ version }}.tar.gz | |
| - source: http://download.redis.io/releases/redis-{{ version }}.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # For more info see https://golang.org/doc/install.html, the instructions there are all | |
| # that is needed to install Go. | |
| # | |
| # DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will | |
| # cause problems. This script will install Go to /usr/local/go and create your workspace | |
| # in your home directory: $HOME/go. | |
| # | |
| # The workspace is where all of the Go code will exist. Place your code in a subdirectory | |
| # of $HOME/go/src. If you want your Go code (workspace) in a different location, change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # For more info see https://golang.org/doc/install.html, the instructions there are all | |
| # that is needed to install Go. | |
| # | |
| # DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will | |
| # cause problems. This script will install Go to /usr/local/go and create your workspace | |
| # in your home directory: $HOME/go. | |
| # | |
| # The workspace is where all of the Go code will exist. Place your code in a subdirectory | |
| # of $HOME/go/src. If you want your Go code (workspace) in a different location, change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # For more info see https://golang.org/doc/install.html, the instructions there are all | |
| # that is needed to install Go. | |
| # | |
| # DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will | |
| # cause problems. This script will install Go to /usr/local/go and create your workspace | |
| # in your home directory: $HOME/go. | |
| # | |
| # The workspace is where all of the Go code will exist. Place your code in a subdirectory | |
| # of $HOME/go/src. If you want your Go code (workspace) in a different location, change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will | |
| # cause problems. | |
| # | |
| # Since Go 1.4 or higher is required to compile Go 1.5 or higher from source; this | |
| # installs Go 1.4.2 to $HOME/go1.4; the expected location of an existing Go tool chain. | |
| # If you install it to a different location, set the GOROOT_BOOSTRAP environment | |
| # variable accordingly. | |
| # | |
| # For more information: https://golang.org/doc/install/source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "gopkg.in/yaml.v2" | |
| ) | |
| var cfgYaml = []byte(` | |
| params: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "github.com/segmentio/go-loggly" | |
| "net/http" | |
| ) | |
| const logglyToken = "insert-your-loggly-customer-token-here" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # For more info see https://golang.org/doc/install.html, the instructions there are all | |
| # that is needed to install Go. | |
| # | |
| # DO NOT RUN with SUDO; Go should be installed under the user not root. Using sudo will | |
| # cause problems. This script will install Go to /usr/local/go and create your workspace | |
| # in your home directory: $HOME/go. | |
| # | |
| # The workspace is where all of the Go code will exist. Place your code in a subdirectory | |
| # of $HOME/go/src. If you want your Go code (workspace) in a different location, change |
OlderNewer