terraform-provider-tumblr

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

README

terraform-provider-tumblr

Build Status codecov Scrutinizer code quality Go Report Card

GitHub release (latest SemVer) GitHub

A Terraform Custom Provider for tumblr.

Description

This is a custom terraform provider for managing common resources within the tumblr site platform, such as texts, photos, quotes etc.

Supported Resources

Currently, the following tumblr resources are supported (or partially supported) for configuration via terraform:

  • tumblr_post_text
  • tumblr_post_photo
  • tumblr_post_quote
  • tumblr_post_link
  • tumblr_post_chat
  • tumblr_post_audio
  • tumblr_post_video

Requirements

Usage

Install
go build -o ~/.terraform.d/plugins/terraform-provider-tumblr
Provider Configuration

The provider only requires some configuration settings. Get your secrets from your tumblr account. Use tumblr/settings to get the OAuth Consumer Key and OAuth Consumer Secret and then validate on oauth page

tumblr
provider "tumblr" {
  consumer_key      = "XXXXXXXXXXXXXXXXXXXXXX"
  consumer_secret   = "XXXXXXXXXXXXXXXXXXXXXX"
  user_token        = "XXXXXXXXXXXXXXXXXXXXXX"
  user_token_secret = "XXXXXXXXXXXXXXXXXXXXXX"
}

Alternatively you can use environment variables

export CONSUMER_KEY="XXXXXXXXXXXXXXXXXXXXXX"
export CONSUMER_SECRET="XXXXXXXXXXXXXXXXXXXXXX"
export USER_TOKEN="XXXXXXXXXXXXXXXXXXXXXX"
export USER_TOKEN_SECRET="XXXXXXXXXXXXXXXXXXXXXX"
Resource Configuration

For documentation on each supported resource, refer to the blog.

Contributing

Bug reports, suggestions, code additions/changes etc. are very welcome! When making code changes, please branch off of master and then raise a pull request so it can be reviewed and merged.

Running Acceptance Tests

In order to test the provider, you can run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note Make sure CONSUMER_KEY, CONSUMER_SECRET, USER_TOKEN and USER_TOKEN_SECRET variables are set.

Acceptance tests create real resources, set your testing blog setting the variable TestBlog on tumblr/schema_tumblr_post_test.go file.

$ make testacc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL